mirror of
https://github.com/Noratrieb/rlo-issue-112061.git
synced 2026-01-14 16:35:04 +01:00
fix llvm reduce
This commit is contained in:
parent
f2179d6acc
commit
1ba5be2ed2
1 changed files with 6 additions and 3 deletions
|
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rustc code.rs --crate-name ll -Zmir-enable-passes=-ConstProp --emit llvm-ir -Cno-prepopulate-passes --crate-type=lib
|
||||
set -eu
|
||||
|
||||
clang ll.ll helper.c -O1 -o good
|
||||
clang ll.ll helper.c -O2 -o bad
|
||||
# rustc code.rs --crate-name ll -Zmir-enable-passes=-ConstProp --emit llvm-ir -Cno-prepopulate-passes --crate-type=lib
|
||||
|
||||
clang $1 helper.c -O1 -o good
|
||||
clang $1 helper.c -O2 -o bad
|
||||
|
||||
bad=$(./bad)
|
||||
good=$(./good)
|
||||
|
|
@ -12,4 +14,5 @@ if [ "$good" != "$bad" ]; then
|
|||
echo "MISCOMPILATION"
|
||||
else
|
||||
echo "no repro"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue