summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx')
-rw-r--r--llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx15
1 files changed, 5 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx b/llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx
index 99bb602ce3e..a8ee438cc43 100644
--- a/llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx
+++ b/llvm/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx
@@ -1,17 +1,12 @@
; The CBE should not emit code that casts the function pointer. This causes
; GCC to get testy and insert trap instructions instead of doing the right
; thing. :(
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+; RUN: llvm-as < %s | llc -march=c
-implementation
+declare void @external(i8*)
-declare void %external(sbyte*)
-
-int %test(int *%X) {
- %RV = call int (int*)* cast (void(sbyte*)* %external to int(int*)*)(int* %X)
- ret int %RV
+define i32 @test(i32* %X) {
+ %RV = call i32 bitcast (void (i8*)* @external to i32 (i32*)*)( i32* %X ) ; <i32> [#uses=1]
+ ret i32 %RV
}
-
-
-
OpenPOWER on IntegriCloud