mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
New testcase
llvm-svn: 11766
This commit is contained in:
parent
7715d8e2ba
commit
745388980f
@ -0,0 +1,8 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 34
|
||||
|
||||
int %test(int %X) {
|
||||
; Do not fold into shr X, 34, as this uses undefined behavior!
|
||||
%Y = shr int %X, ubyte 17
|
||||
%Z = shr int %Y, ubyte 17
|
||||
ret int %Z
|
||||
}
|
Loading…
Reference in New Issue
Block a user