llvm-6502/test/Transforms/ConstProp/2006-12-01-bool-casts.ll
2006-12-02 04:23:10 +00:00

14 lines
293 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret int -1' &&
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret uint 1'
int %test1() {
%A = sext bool true to int
ret int %A
}
uint %test2() {
%A = zext bool true to uint
ret uint %A
}