1 ; RUN: llc -verify-machineinstrs < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=x86_64-unknown-unknown -O0 | FileCheck %s
4 define swifttailcc [4 x i64] @return_int() {
5 ; CHECK-LABEL: return_int:
6 ; CHECK-DAG: movl $1, %eax
7 ; CHECK-DAG: movl $2, %edx
8 ; CHECK-DAG: movl $3, %ecx
9 ; CHECK-DAG: movl $4, %r8d
11 ret [4 x i64] [i64 1, i64 2, i64 3, i64 4]
15 ; CHECK: [[ONE:.LCPI.*]]:
16 ; CHECK-NEXT: # double 1
17 ; CHECK: [[TWO:.LCPI.*]]:
18 ; CHECK-NEXT: # double 2
19 ; CHECK: [[THREE:.LCPI.*]]:
20 ; CHECK-NEXT: # double 3
22 define swifttailcc [4 x double] @return_float() {
23 ; CHECK-LABEL: return_float:
24 ; CHECK-DAG: movsd [[ONE]](%rip), %xmm1
25 ; CHECK-DAG: movsd [[TWO]](%rip), %xmm2
26 ; CHECK-DAG: movsd [[THREE]](%rip), %xmm3
27 ; CHECK-DAG: xorps %xmm0, %xmm0
28 ret [4 x double] [double 0.0, double 1.0, double 2.0, double 3.0]