1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Add a test case for PR1271 (necessary, but not sufficient).

llvm-svn: 35343
This commit is contained in:
Reid Spencer 2007-03-25 21:30:41 +00:00
parent 4d3d7d0f2a
commit c48255bfcf

View File

@ -0,0 +1,9 @@
; PR1271
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and
define i1 @test(i32 %tmp13) {
entry:
%tmp14 = shl i32 %tmp13, 12 ; <i32> [#uses=1]
%tmp15 = lshr i32 %tmp14, 12 ; <i32> [#uses=1]
%res = icmp ne i32 %tmp15, 0 ; <i1>:3 [#uses=1]
ret i1 %res
}