-; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep callee
-; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep div
+; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep callee
+; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep div
-implementation
-internal int %callee(int %A, int %B) {
- %C = div int %A, %B
- ret int %C
+define internal i32 @callee(i32 %A, i32 %B) {
+ %C = sdiv i32 %A, %B ; <i32> [#uses=1]
+ ret i32 %C
}
-int %test() {
- %X = call int %callee(int 10, int 3)
- ret int %X
+define i32 @test() {
+ %X = call i32 @callee( i32 10, i32 3 ) ; <i32> [#uses=1]
+ ret i32 %X
}
+