mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 03:17:51 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbc20b451d
commit
cedfd2c78d
@ -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…
x
Reference in New Issue
Block a user