1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/Transforms/SCCP/2008-05-23-UndefCallFold.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

15 lines
370 B
LLVM

; RUN: opt %s -sccp | llvm-dis | not grep {ret i32 undef}
; PR2358
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i686-pc-linux-gnu"
define i32 @x(i32 %b) {
entry:
%val = call i32 @llvm.cttz.i32(i32 undef)
ret i32 %val
}
declare i32 @llvm.cttz.i32(i32)