forked from OSchip/llvm-project
31 lines
1.2 KiB
LLVM
31 lines
1.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -code-model=large -relocation-model=static | FileCheck %s
|
|
|
|
@.str = internal constant [26 x i8] c"%d, %f, %d, %lld, %d, %f\0A\00" ; <[26 x i8]*> [#uses=1]
|
|
|
|
declare i32 @printf(i8*, ...) nounwind
|
|
|
|
define i32 @main() nounwind {
|
|
; CHECK-LABEL: main:
|
|
; CHECK: ## %bb.0: ## %entry
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: movabsq $_.str, %rdi
|
|
; CHECK-NEXT: movabsq $_printf, %r9
|
|
; CHECK-NEXT: movabsq $LCPI0_0, %rax
|
|
; CHECK-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
|
|
; CHECK-NEXT: movabsq $LCPI0_1, %rax
|
|
; CHECK-NEXT: movsd {{.*#+}} xmm1 = mem[0],zero
|
|
; CHECK-NEXT: movabsq $123456677890, %rcx ## imm = 0x1CBE976802
|
|
; CHECK-NEXT: movl $12, %esi
|
|
; CHECK-NEXT: movl $120, %edx
|
|
; CHECK-NEXT: movl $-10, %r8d
|
|
; CHECK-NEXT: movb $2, %al
|
|
; CHECK-NEXT: callq *%r9
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
; CHECK-NEXT: popq %rcx
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%tmp10.i = tail call i32 (i8*, ...) @printf( i8* getelementptr ([26 x i8], [26 x i8]* @.str, i32 0, i64 0), i32 12, double 0x3FF3EB8520000000, i32 120, i64 123456677890, i32 -10, double 4.500000e+15 ) nounwind ; <i32> [#uses=0]
|
|
ret i32 0
|
|
}
|