mirror of
https://github.com/Noratrieb/rlo-issue-112061.git
synced 2026-01-16 17:35:03 +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
|
#!/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
|
# rustc code.rs --crate-name ll -Zmir-enable-passes=-ConstProp --emit llvm-ir -Cno-prepopulate-passes --crate-type=lib
|
||||||
clang ll.ll helper.c -O2 -o bad
|
|
||||||
|
clang $1 helper.c -O1 -o good
|
||||||
|
clang $1 helper.c -O2 -o bad
|
||||||
|
|
||||||
bad=$(./bad)
|
bad=$(./bad)
|
||||||
good=$(./good)
|
good=$(./good)
|
||||||
|
|
@ -12,4 +14,5 @@ if [ "$good" != "$bad" ]; then
|
||||||
echo "MISCOMPILATION"
|
echo "MISCOMPILATION"
|
||||||
else
|
else
|
||||||
echo "no repro"
|
echo "no repro"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue