mirror of
https://github.com/Noratrieb/rlo-issue-112061.git
synced 2026-01-14 16:35:04 +01:00
more
This commit is contained in:
parent
096d0e78ac
commit
aa0f9c3553
3 changed files with 10 additions and 2 deletions
12
checkllvm.sh
12
checkllvm.sh
|
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
rustc code.rs --crate-name ll -Zmir-enable-passes=-ConstProp --emit llvm-ir -Cno-prepopulate-passes --crate-type=lib
|
rustc code.rs --crate-name ll -Zmir-enable-passes=-ConstProp --emit llvm-ir -Cno-prepopulate-passes --crate-type=lib
|
||||||
|
|
||||||
clang ll.ll helper.c
|
clang ll.ll helper.c -O1 -o good
|
||||||
|
clang ll.ll helper.c -O2 -o bad
|
||||||
|
|
||||||
./a.out
|
bad=$(./bad)
|
||||||
|
good=$(./good)
|
||||||
|
|
||||||
|
if [ "$good" != "$bad" ]; then
|
||||||
|
echo "MISCOMPILATION"
|
||||||
|
else
|
||||||
|
echo "no repro"
|
||||||
|
fi
|
||||||
BIN
llbad
Executable file
BIN
llbad
Executable file
Binary file not shown.
BIN
llgood
Executable file
BIN
llgood
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue