Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 9a06bd3

Browse files
committed
[X86] Use update_llc_test_checks.py to regenerate fast-isel-int-float-conversion.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316855 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 654a1f4 commit 9a06bd3

File tree

1 file changed

+37
-16
lines changed

1 file changed

+37
-16
lines changed

test/CodeGen/X86/fast-isel-int-float-conversion.ll

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,64 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
12
; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+sse2 -fast-isel --fast-isel-abort=1 < %s | FileCheck %s --check-prefix=ALL --check-prefix=SSE2
23
; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+avx -fast-isel --fast-isel-abort=1 < %s | FileCheck %s --check-prefix=ALL --check-prefix=AVX
34

45

56
define double @int_to_double_rr(i32 %a) {
6-
; ALL-LABEL: int_to_double_rr:
7-
; SSE2: cvtsi2sdl %edi, %xmm0
8-
; AVX: vcvtsi2sdl %edi, %xmm0, %xmm0
9-
; ALL-NEXT: ret
7+
; SSE2-LABEL: int_to_double_rr:
8+
; SSE2: # BB#0: # %entry
9+
; SSE2-NEXT: cvtsi2sdl %edi, %xmm0
10+
; SSE2-NEXT: retq
11+
;
12+
; AVX-LABEL: int_to_double_rr:
13+
; AVX: # BB#0: # %entry
14+
; AVX-NEXT: vcvtsi2sdl %edi, %xmm0, %xmm0
15+
; AVX-NEXT: retq
1016
entry:
1117
%0 = sitofp i32 %a to double
1218
ret double %0
1319
}
1420

1521
define double @int_to_double_rm(i32* %a) {
16-
; ALL-LABEL: int_to_double_rm:
17-
; SSE2: cvtsi2sdl (%rdi), %xmm0
18-
; AVX: vcvtsi2sdl (%rdi), %xmm0, %xmm0
19-
; ALL-NEXT: ret
22+
; SSE2-LABEL: int_to_double_rm:
23+
; SSE2: # BB#0: # %entry
24+
; SSE2-NEXT: cvtsi2sdl (%rdi), %xmm0
25+
; SSE2-NEXT: retq
26+
;
27+
; AVX-LABEL: int_to_double_rm:
28+
; AVX: # BB#0: # %entry
29+
; AVX-NEXT: vcvtsi2sdl (%rdi), %xmm0, %xmm0
30+
; AVX-NEXT: retq
2031
entry:
2132
%0 = load i32, i32* %a
2233
%1 = sitofp i32 %0 to double
2334
ret double %1
2435
}
2536

2637
define float @int_to_float_rr(i32 %a) {
27-
; ALL-LABEL: int_to_float_rr:
28-
; SSE2: cvtsi2ssl %edi, %xmm0
29-
; AVX: vcvtsi2ssl %edi, %xmm0, %xmm0
30-
; ALL-NEXT: ret
38+
; SSE2-LABEL: int_to_float_rr:
39+
; SSE2: # BB#0: # %entry
40+
; SSE2-NEXT: cvtsi2ssl %edi, %xmm0
41+
; SSE2-NEXT: retq
42+
;
43+
; AVX-LABEL: int_to_float_rr:
44+
; AVX: # BB#0: # %entry
45+
; AVX-NEXT: vcvtsi2ssl %edi, %xmm0, %xmm0
46+
; AVX-NEXT: retq
3147
entry:
3248
%0 = sitofp i32 %a to float
3349
ret float %0
3450
}
3551

3652
define float @int_to_float_rm(i32* %a) {
37-
; ALL-LABEL: int_to_float_rm:
38-
; SSE2: cvtsi2ssl (%rdi), %xmm0
39-
; AVX: vcvtsi2ssl (%rdi), %xmm0, %xmm0
40-
; ALL-NEXT: ret
53+
; SSE2-LABEL: int_to_float_rm:
54+
; SSE2: # BB#0: # %entry
55+
; SSE2-NEXT: cvtsi2ssl (%rdi), %xmm0
56+
; SSE2-NEXT: retq
57+
;
58+
; AVX-LABEL: int_to_float_rm:
59+
; AVX: # BB#0: # %entry
60+
; AVX-NEXT: vcvtsi2ssl (%rdi), %xmm0, %xmm0
61+
; AVX-NEXT: retq
4162
entry:
4263
%0 = load i32, i32* %a
4364
%1 = sitofp i32 %0 to float

0 commit comments

Comments
 (0)