llvm-6502/test/Transforms/InstCombine/apint-cast-and-cast.ll
Dan Gohman f2f6ce65b7 Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-11 18:01:28 +00:00

16 lines
320 B
LLVM

; RUN: opt < %s -instcombine -S | 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
}