diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/GlobalISel/callingconv.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/GlobalISel/callingconv.ll | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/llvm/test/CodeGen/X86/GlobalISel/callingconv.ll b/llvm/test/CodeGen/X86/GlobalISel/callingconv.ll index 4100a7217ac..238f1fa21cf 100644 --- a/llvm/test/CodeGen/X86/GlobalISel/callingconv.ll +++ b/llvm/test/CodeGen/X86/GlobalISel/callingconv.ll @@ -4,12 +4,12 @@ define i32 @test_ret_i32() { ; X32-LABEL: test_ret_i32: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movl $20, %eax ; X32-NEXT: retl ; ; X64-LABEL: test_ret_i32: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movl $20, %eax ; X64-NEXT: retq ret i32 20 @@ -17,13 +17,13 @@ define i32 @test_ret_i32() { define i64 @test_ret_i64() { ; X32-LABEL: test_ret_i64: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movl $4294967295, %eax # imm = 0xFFFFFFFF ; X32-NEXT: movl $15, %edx ; X32-NEXT: retl ; ; X64-LABEL: test_ret_i64: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movabsq $68719476735, %rax # imm = 0xFFFFFFFFF ; X64-NEXT: retq ret i64 68719476735 @@ -31,12 +31,12 @@ define i64 @test_ret_i64() { define i8 @test_arg_i8(i8 %a) { ; X32-LABEL: test_arg_i8: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movb 4(%esp), %al ; X32-NEXT: retl ; ; X64-LABEL: test_arg_i8: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movl %edi, %eax ; X64-NEXT: retq ret i8 %a @@ -44,12 +44,12 @@ define i8 @test_arg_i8(i8 %a) { define i16 @test_arg_i16(i16 %a) { ; X32-LABEL: test_arg_i16: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movzwl 4(%esp), %eax ; X32-NEXT: retl ; ; X64-LABEL: test_arg_i16: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movl %edi, %eax ; X64-NEXT: retq ret i16 %a @@ -57,12 +57,12 @@ define i16 @test_arg_i16(i16 %a) { define i32 @test_arg_i32(i32 %a) { ; X32-LABEL: test_arg_i32: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movl 4(%esp), %eax ; X32-NEXT: retl ; ; X64-LABEL: test_arg_i32: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movl %edi, %eax ; X64-NEXT: retq ret i32 %a @@ -70,13 +70,13 @@ define i32 @test_arg_i32(i32 %a) { define i64 @test_arg_i64(i64 %a) { ; X32-LABEL: test_arg_i64: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movl 4(%esp), %eax ; X32-NEXT: movl 8(%esp), %edx ; X32-NEXT: retl ; ; X64-LABEL: test_arg_i64: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movq %rdi, %rax ; X64-NEXT: retq ret i64 %a @@ -84,13 +84,13 @@ define i64 @test_arg_i64(i64 %a) { define i64 @test_i64_args_8(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7, i64 %arg8) { ; X32-LABEL: test_i64_args_8: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movl 60(%esp), %eax ; X32-NEXT: movl 64(%esp), %edx ; X32-NEXT: retl ; ; X64-LABEL: test_i64_args_8: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movq 16(%rsp), %rax ; X64-NEXT: retq ret i64 %arg8 @@ -98,12 +98,12 @@ define i64 @test_i64_args_8(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg define <4 x i32> @test_v4i32_args(<4 x i32> %arg1, <4 x i32> %arg2) { ; X32-LABEL: test_v4i32_args: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: movaps %xmm1, %xmm0 ; X32-NEXT: retl ; ; X64-LABEL: test_v4i32_args: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movaps %xmm1, %xmm0 ; X64-NEXT: retq ret <4 x i32> %arg2 @@ -111,7 +111,7 @@ define <4 x i32> @test_v4i32_args(<4 x i32> %arg1, <4 x i32> %arg2) { define <8 x i32> @test_v8i32_args(<8 x i32> %arg1, <8 x i32> %arg2) { ; X32-LABEL: test_v8i32_args: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: movups 16(%esp), %xmm1 @@ -120,7 +120,7 @@ define <8 x i32> @test_v8i32_args(<8 x i32> %arg1, <8 x i32> %arg2) { ; X32-NEXT: retl ; ; X64-LABEL: test_v8i32_args: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: movaps %xmm2, %xmm0 ; X64-NEXT: movaps %xmm3, %xmm1 ; X64-NEXT: retq @@ -130,7 +130,7 @@ define <8 x i32> @test_v8i32_args(<8 x i32> %arg1, <8 x i32> %arg2) { declare void @trivial_callee() define void @test_trivial_call() { ; X32-LABEL: test_trivial_call: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: calll trivial_callee @@ -138,7 +138,7 @@ define void @test_trivial_call() { ; X32-NEXT: retl ; ; X64-LABEL: test_trivial_call: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rax ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: callq trivial_callee @@ -151,7 +151,7 @@ define void @test_trivial_call() { declare void @simple_arg_callee(i32 %in0, i32 %in1) define void @test_simple_arg_call(i32 %in0, i32 %in1) { ; X32-LABEL: test_simple_arg_call: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: movl 16(%esp), %eax @@ -163,7 +163,7 @@ define void @test_simple_arg_call(i32 %in0, i32 %in1) { ; X32-NEXT: retl ; ; X64-LABEL: test_simple_arg_call: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rax ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: movl %edi, %eax @@ -179,7 +179,7 @@ define void @test_simple_arg_call(i32 %in0, i32 %in1) { declare void @simple_arg8_callee(i32 %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i32 %arg7, i32 %arg8) define void @test_simple_arg8_call(i32 %in0) { ; X32-LABEL: test_simple_arg8_call: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $44, %esp ; X32-NEXT: .cfi_def_cfa_offset 48 ; X32-NEXT: movl 48(%esp), %eax @@ -196,7 +196,7 @@ define void @test_simple_arg8_call(i32 %in0) { ; X32-NEXT: retl ; ; X64-LABEL: test_simple_arg8_call: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: subq $24, %rsp ; X64-NEXT: .cfi_def_cfa_offset 32 ; X64-NEXT: movl %edi, (%rsp) @@ -216,7 +216,7 @@ define void @test_simple_arg8_call(i32 %in0) { declare i32 @simple_return_callee(i32 %in0) define i32 @test_simple_return_callee() { ; X32-LABEL: test_simple_return_callee: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: movl $5, %eax @@ -227,7 +227,7 @@ define i32 @test_simple_return_callee() { ; X32-NEXT: retl ; ; X64-LABEL: test_simple_return_callee: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rax ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: movl $5, %edi @@ -243,7 +243,7 @@ define i32 @test_simple_return_callee() { declare <8 x i32> @split_return_callee(<8 x i32> %in0) define <8 x i32> @test_split_return_callee(<8 x i32> %arg1, <8 x i32> %arg2) { ; X32-LABEL: test_split_return_callee: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $44, %esp ; X32-NEXT: .cfi_def_cfa_offset 48 ; X32-NEXT: movaps %xmm0, (%esp) # 16-byte Spill @@ -257,7 +257,7 @@ define <8 x i32> @test_split_return_callee(<8 x i32> %arg1, <8 x i32> %arg2) { ; X32-NEXT: retl ; ; X64-LABEL: test_split_return_callee: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: subq $40, %rsp ; X64-NEXT: .cfi_def_cfa_offset 48 ; X64-NEXT: movaps %xmm0, (%rsp) # 16-byte Spill @@ -276,7 +276,7 @@ define <8 x i32> @test_split_return_callee(<8 x i32> %arg1, <8 x i32> %arg2) { define void @test_indirect_call(void()* %func) { ; X32-LABEL: test_indirect_call: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: calll *16(%esp) @@ -284,7 +284,7 @@ define void @test_indirect_call(void()* %func) { ; X32-NEXT: retl ; ; X64-LABEL: test_indirect_call: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rax ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: callq *%rdi @@ -297,7 +297,7 @@ define void @test_indirect_call(void()* %func) { declare void @take_char(i8) define void @test_abi_exts_call(i8* %addr) { ; X32-LABEL: test_abi_exts_call: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: pushl %ebx ; X32-NEXT: .cfi_def_cfa_offset 8 ; X32-NEXT: pushl %esi @@ -322,7 +322,7 @@ define void @test_abi_exts_call(i8* %addr) { ; X32-NEXT: retl ; ; X64-LABEL: test_abi_exts_call: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rbx ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: .cfi_offset %rbx, -16 @@ -346,7 +346,7 @@ define void @test_abi_exts_call(i8* %addr) { declare void @variadic_callee(i8*, ...) define void @test_variadic_call_1(i8** %addr_ptr, i32* %val_ptr) { ; X32-LABEL: test_variadic_call_1: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: movl 16(%esp), %eax @@ -360,7 +360,7 @@ define void @test_variadic_call_1(i8** %addr_ptr, i32* %val_ptr) { ; X32-NEXT: retl ; ; X64-LABEL: test_variadic_call_1: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rax ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: movq (%rdi), %rdi @@ -378,7 +378,7 @@ define void @test_variadic_call_1(i8** %addr_ptr, i32* %val_ptr) { define void @test_variadic_call_2(i8** %addr_ptr, double* %val_ptr) { ; X32-LABEL: test_variadic_call_2: -; X32: # BB#0: +; X32: # %bb.0: ; X32-NEXT: subl $12, %esp ; X32-NEXT: .cfi_def_cfa_offset 16 ; X32-NEXT: movl 16(%esp), %eax @@ -396,7 +396,7 @@ define void @test_variadic_call_2(i8** %addr_ptr, double* %val_ptr) { ; X32-NEXT: retl ; ; X64-LABEL: test_variadic_call_2: -; X64: # BB#0: +; X64: # %bb.0: ; X64-NEXT: pushq %rax ; X64-NEXT: .cfi_def_cfa_offset 16 ; X64-NEXT: movq (%rdi), %rdi |