mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Test for the other way also
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cedfd2c78d
commit
86171b9203
@ -6,3 +6,10 @@ int %test(int %X) {
|
||||
%Z = shr int %Y, ubyte 17
|
||||
ret int %Z
|
||||
}
|
||||
|
||||
int %test2(int %X) {
|
||||
; Do not fold into shl X, 34, as this uses undefined behavior!
|
||||
%Y = shl int %X, ubyte 17
|
||||
%Z = shl int %Y, ubyte 17
|
||||
ret int %Z
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user