2014-07-14 22:57:27 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-win32 -mcpu=corei7 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
|
|
|
|
define double @double() {
|
|
|
|
ret double 0x0000000000800000
|
|
|
|
}
|
|
|
|
; CHECK: .globl __real@0000000000800000
|
|
|
|
; CHECK-NEXT: .section .rdata,"rd",discard,__real@0000000000800000
|
|
|
|
; CHECK-NEXT: .align 8
|
|
|
|
; CHECK-NEXT: __real@0000000000800000:
|
|
|
|
; CHECK-NEXT: .quad 8388608
|
|
|
|
; CHECK: double:
|
|
|
|
; CHECK: movsd __real@0000000000800000(%rip), %xmm0
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
|
|
|
|
define <4 x i32> @vec1() {
|
|
|
|
ret <4 x i32> <i32 3, i32 2, i32 1, i32 0>
|
|
|
|
}
|
|
|
|
; CHECK: .globl __xmm@00000000000000010000000200000003
|
|
|
|
; CHECK-NEXT: .section .rdata,"rd",discard,__xmm@00000000000000010000000200000003
|
|
|
|
; CHECK-NEXT: .align 16
|
|
|
|
; CHECK-NEXT: __xmm@00000000000000010000000200000003:
|
|
|
|
; CHECK-NEXT: .long 3
|
|
|
|
; CHECK-NEXT: .long 2
|
|
|
|
; CHECK-NEXT: .long 1
|
|
|
|
; CHECK-NEXT: .long 0
|
|
|
|
; CHECK: vec1:
|
|
|
|
; CHECK: movaps __xmm@00000000000000010000000200000003(%rip), %xmm0
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
|
|
|
|
define <8 x i16> @vec2() {
|
|
|
|
ret <8 x i16> <i16 7, i16 6, i16 5, i16 4, i16 3, i16 2, i16 1, i16 0>
|
|
|
|
}
|
|
|
|
; CHECK: .globl __xmm@00000001000200030004000500060007
|
|
|
|
; CHECK-NEXT: .section .rdata,"rd",discard,__xmm@00000001000200030004000500060007
|
|
|
|
; CHECK-NEXT: .align 16
|
|
|
|
; CHECK-NEXT: __xmm@00000001000200030004000500060007:
|
|
|
|
; CHECK-NEXT: .short 7
|
|
|
|
; CHECK-NEXT: .short 6
|
|
|
|
; CHECK-NEXT: .short 5
|
|
|
|
; CHECK-NEXT: .short 4
|
|
|
|
; CHECK-NEXT: .short 3
|
|
|
|
; CHECK-NEXT: .short 2
|
|
|
|
; CHECK-NEXT: .short 1
|
|
|
|
; CHECK-NEXT: .short 0
|
|
|
|
; CHECK: vec2:
|
|
|
|
; CHECK: movaps __xmm@00000001000200030004000500060007(%rip), %xmm0
|
|
|
|
; CHECK-NEXT: ret
|
2014-07-15 02:34:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
define <4 x float> @undef1() {
|
|
|
|
ret <4 x float> <float 1.0, float 1.0, float undef, float undef>
|
|
|
|
|
|
|
|
; CHECK: .globl __xmm@00000000000000003f8000003f800000
|
|
|
|
; CHECK-NEXT: .section .rdata,"rd",discard,__xmm@00000000000000003f8000003f800000
|
|
|
|
; CHECK-NEXT: .align 16
|
|
|
|
; CHECK-NEXT: __xmm@00000000000000003f8000003f800000:
|
|
|
|
; CHECK-NEXT: .long 1065353216 # float 1
|
|
|
|
; CHECK-NEXT: .long 1065353216 # float 1
|
|
|
|
; CHECK-NEXT: .zero 4
|
|
|
|
; CHECK-NEXT: .zero 4
|
|
|
|
; CHECK: undef1:
|
|
|
|
; CHECK: movaps __xmm@00000000000000003f8000003f800000(%rip), %xmm0
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
}
|