Fix operand type for int_x86_ssse3_phadd_sw_128 intrinsic
[oota-llvm.git] / test / CodeGen / CBackend / 2004-11-13-FunctionPointerCast.ll
1 ; The CBE should not emit code that casts the function pointer.  This causes
2 ; GCC to get testy and insert trap instructions instead of doing the right
3 ; thing. :(
4 ; RUN: llc < %s -march=c
5
6 declare void @external(i8*)
7
8 define i32 @test(i32* %X) {
9         %RV = call i32 bitcast (void (i8*)* @external to i32 (i32*)*)( i32* %X )                ; <i32> [#uses=1]
10         ret i32 %RV
11 }
12