mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-01 07:41:40 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97815c6b9c
commit
ade2f54d2b
24
test/CodeGen/X86/bitcast.ll
Normal file
24
test/CodeGen/X86/bitcast.ll
Normal file
@ -0,0 +1,24 @@
|
||||
; RUN: llvm-as < %s | llc &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 &&
|
||||
; RUN: llvm-as < %s | 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user