Skip to content
Snippets Groups Projects
Commit 7eaa535d authored by Chris Lattner's avatar Chris Lattner
Browse files

Test for the other way also

llvm-svn: 11767
parent 1cc12171
No related merge requests found
...@@ -6,3 +6,10 @@ int %test(int %X) { ...@@ -6,3 +6,10 @@ int %test(int %X) {
%Z = shr int %Y, ubyte 17 %Z = shr int %Y, ubyte 17
ret int %Z 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment