mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-06 09:54:49 +00:00
movd when assembling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133452 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
532 B
LLVM
32 lines
532 B
LLVM
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
|
; RUN: llc < %s -march=x86-64 | not grep rsp
|
|
|
|
define i64 @test1(double %A) {
|
|
; CHECK: test1
|
|
; CHECK: movq
|
|
%B = bitcast double %A to i64
|
|
ret i64 %B
|
|
}
|
|
|
|
define double @test2(i64 %A) {
|
|
; CHECK: test2
|
|
; CHECK: movq
|
|
%B = bitcast i64 %A to double
|
|
ret double %B
|
|
}
|
|
|
|
define i32 @test3(float %A) {
|
|
; CHECK: test3
|
|
; CHECK: movd
|
|
%B = bitcast float %A to i32
|
|
ret i32 %B
|
|
}
|
|
|
|
define float @test4(i32 %A) {
|
|
; CHECK: test4
|
|
; CHECK: movd
|
|
%B = bitcast i32 %A to float
|
|
ret float %B
|
|
}
|
|
|