1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/Transforms/InstCombine/apint-cast-and-cast.ll
Dan Gohman 8d84372836 Change these tests to feed the assembly files to opt directly, instead
of using llvm-as, now that opt supports this.

llvm-svn: 81226
2009-09-08 16:50:01 +00:00

16 lines
326 B
LLVM

; RUN: opt %s -instcombine | llvm-dis | not grep bitcast
define i19 @test1(i43 %val) {
%t1 = bitcast i43 %val to i43
%t2 = and i43 %t1, 1
%t3 = trunc i43 %t2 to i19
ret i19 %t3
}
define i73 @test2(i677 %val) {
%t1 = bitcast i677 %val to i677
%t2 = and i677 %t1, 1
%t3 = trunc i677 %t2 to i73
ret i73 %t3
}