Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: tests_lit/llvm2ice_tests/select-opt.ll

Issue 410743005: Ensure that llvm-mc parses unit tests in x86-32 mode. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Remove redundant test line. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/shift.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Simple test of the select instruction. The CHECK lines are only 1 ; Simple test of the select instruction. The CHECK lines are only
2 ; checking for basic instruction patterns that should be present 2 ; checking for basic instruction patterns that should be present
3 ; regardless of the optimization level, so there are no special OPTM1 3 ; regardless of the optimization level, so there are no special OPTM1
4 ; match lines. 4 ; match lines.
5 5
6 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s 6 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
7 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s 7 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s
8 ; RUN: %llvm2ice -O2 --verbose none %s | llvm-mc -x86-asm-syntax=intel 8 ; RUN: %llvm2ice -O2 --verbose none %s \
9 ; RUN: %llvm2ice -Om1 --verbose none %s | llvm-mc -x86-asm-syntax=intel 9 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj
10 ; RUN: %llvm2ice -Om1 --verbose none %s \
11 ; RUN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj
10 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 12 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
11 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 13 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
12 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ 14 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
13 ; RUN: | FileCheck --check-prefix=DUMP %s 15 ; RUN: | FileCheck --check-prefix=DUMP %s
14 16
15 define void @testSelect(i32 %a, i32 %b) { 17 define void @testSelect(i32 %a, i32 %b) {
16 entry: 18 entry:
17 %cmp = icmp slt i32 %a, %b 19 %cmp = icmp slt i32 %a, %b
18 %cond = select i1 %cmp, i32 %a, i32 %b 20 %cond = select i1 %cmp, i32 %a, i32 %b
19 tail call void @useInt(i32 %cond) 21 tail call void @useInt(i32 %cond)
20 %cmp1 = icmp sgt i32 %a, %b 22 %cmp1 = icmp sgt i32 %a, %b
21 %cond2 = select i1 %cmp1, i32 10, i32 20 23 %cond2 = select i1 %cmp1, i32 10, i32 20
22 tail call void @useInt(i32 %cond2) 24 tail call void @useInt(i32 %cond2)
23 ret void 25 ret void
24 } 26 }
25 27
26 declare void @useInt(i32) 28 declare void @useInt(i32)
27 29
28 ; CHECK: .globl testSelect 30 ; CHECK: .globl testSelect
29 ; CHECK: cmp 31 ; CHECK: cmp
30 ; CHECK: cmp 32 ; CHECK: cmp
31 ; CHECK: call useInt 33 ; CHECK: call useInt
32 ; CHECK: cmp 34 ; CHECK: cmp
33 ; CHECK: cmp 35 ; CHECK: cmp
34 ; CHECK: call useInt 36 ; CHECK: call useInt
35 ; CHECK: ret 37 ; CHECK: ret
36 38
37 ; ERRORS-NOT: ICE translation error 39 ; ERRORS-NOT: ICE translation error
38 ; DUMP-NOT: SZ 40 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/shift.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698