diff options
Diffstat (limited to 'test/CodeGen/X86/bitcast.ll')
-rw-r--r-- | test/CodeGen/X86/bitcast.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/X86/bitcast.ll b/test/CodeGen/X86/bitcast.ll new file mode 100644 index 0000000..d8bc069 --- /dev/null +++ b/test/CodeGen/X86/bitcast.ll @@ -0,0 +1,23 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 +; PR1033 + +long %test1(double %t) { + %u = bitcast double %t to long + ret long %u +} + +double %test2(long %t) { + %u = bitcast long %t to double + ret double %u +} + +int %test3(float %t) { + %u = bitcast float %t to int + ret int %u +} + +float %test4(int %t) { + %u = bitcast int %t to float + ret float %u +} |