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

Commit 200b7a0

Browse files
author
Igor Breger
committed
[GlobalISel][X86] Split test file. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302647 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3f9585c commit 200b7a0

File tree

2 files changed

+44
-42
lines changed

2 files changed

+44
-42
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2+
; RUN: llc -mtriple=x86_64-linux-gnu -global-isel < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X64
3+
4+
define i64 @test_add_i64(i64 %arg1, i64 %arg2) {
5+
; ALL-LABEL: test_add_i64:
6+
; ALL: # BB#0:
7+
; ALL-NEXT: leaq (%rsi,%rdi), %rax
8+
; ALL-NEXT: retq
9+
%ret = add i64 %arg1, %arg2
10+
ret i64 %ret
11+
}
12+
13+
define i32 @test_add_i32(i32 %arg1, i32 %arg2) {
14+
; ALL-LABEL: test_add_i32:
15+
; ALL: # BB#0:
16+
; ALL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
17+
; ALL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
18+
; ALL-NEXT: leal (%rsi,%rdi), %eax
19+
; ALL-NEXT: retq
20+
%ret = add i32 %arg1, %arg2
21+
ret i32 %ret
22+
}
23+
24+
define i16 @test_add_i16(i16 %arg1, i16 %arg2) {
25+
; ALL-LABEL: test_add_i16:
26+
; ALL: # BB#0:
27+
; ALL-NEXT: # kill: %DI<def> %DI<kill> %RDI<def>
28+
; ALL-NEXT: # kill: %SI<def> %SI<kill> %RSI<def>
29+
; ALL-NEXT: leal (%rsi,%rdi), %eax
30+
; ALL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
31+
; ALL-NEXT: retq
32+
%ret = add i16 %arg1, %arg2
33+
ret i16 %ret
34+
}
35+
36+
define i8 @test_add_i8(i8 %arg1, i8 %arg2) {
37+
; ALL-LABEL: test_add_i8:
38+
; ALL: # BB#0:
39+
; ALL-NEXT: addb %dil, %sil
40+
; ALL-NEXT: movl %esi, %eax
41+
; ALL-NEXT: retq
42+
%ret = add i8 %arg1, %arg2
43+
ret i8 %ret
44+
}

test/CodeGen/X86/GlobalISel/binop.ll

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,6 @@
44
; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+avx512f -global-isel < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=ALL_AVX --check-prefix=AVX512F
55
; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+avx512f -mattr=+avx512vl -global-isel < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=ALL_AVX --check-prefix=AVX512VL
66

7-
define i64 @test_add_i64(i64 %arg1, i64 %arg2) {
8-
; ALL-LABEL: test_add_i64:
9-
; ALL: # BB#0:
10-
; ALL-NEXT: leaq (%rsi,%rdi), %rax
11-
; ALL-NEXT: retq
12-
%ret = add i64 %arg1, %arg2
13-
ret i64 %ret
14-
}
15-
16-
define i32 @test_add_i32(i32 %arg1, i32 %arg2) {
17-
; ALL-LABEL: test_add_i32:
18-
; ALL: # BB#0:
19-
; ALL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
20-
; ALL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
21-
; ALL-NEXT: leal (%rsi,%rdi), %eax
22-
; ALL-NEXT: retq
23-
%ret = add i32 %arg1, %arg2
24-
ret i32 %ret
25-
}
26-
27-
define i16 @test_add_i16(i16 %arg1, i16 %arg2) {
28-
; ALL-LABEL: test_add_i16:
29-
; ALL: # BB#0:
30-
; ALL-NEXT: # kill: %DI<def> %DI<kill> %RDI<def>
31-
; ALL-NEXT: # kill: %SI<def> %SI<kill> %RSI<def>
32-
; ALL-NEXT: leal (%rsi,%rdi), %eax
33-
; ALL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
34-
; ALL-NEXT: retq
35-
%ret = add i16 %arg1, %arg2
36-
ret i16 %ret
37-
}
38-
39-
define i8 @test_add_i8(i8 %arg1, i8 %arg2) {
40-
; ALL-LABEL: test_add_i8:
41-
; ALL: # BB#0:
42-
; ALL-NEXT: addb %dil, %sil
43-
; ALL-NEXT: movl %esi, %eax
44-
; ALL-NEXT: retq
45-
%ret = add i8 %arg1, %arg2
46-
ret i8 %ret
47-
}
48-
497
define i64 @test_sub_i64(i64 %arg1, i64 %arg2) {
508
; ALL-LABEL: test_sub_i64:
519
; ALL: # BB#0:

0 commit comments

Comments
 (0)