diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2018-04-18 20:17:29 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2018-04-18 20:17:29 +0000 |
| commit | c0464d9271bedaddcca349c9a610b39d8505d2a6 (patch) | |
| tree | 99dce434cf86b221e390aca477e17ccf0a3b0505 /llvm/test/CodeGen/RISCV/branch.ll | |
| parent | 04244cbf45d06370c54fdfba065e0ab4dfe004ca (diff) | |
| download | bcm5719-llvm-c0464d9271bedaddcca349c9a610b39d8505d2a6.tar.gz bcm5719-llvm-c0464d9271bedaddcca349c9a610b39d8505d2a6.zip | |
[RISCV] Expand codegen -> compression sanity checks and move to a single file
The objdump tests interfere with update_llc_test_checks.py and can't be
automatically update them. Put the sanitify check for compression on the
codegen codepath into a separate file, and expand it to also include tests of
integer materialisation. This would catch changes such as those triggered by
D41949.
llvm-svn: 330288
Diffstat (limited to 'llvm/test/CodeGen/RISCV/branch.ll')
| -rw-r--r-- | llvm/test/CodeGen/RISCV/branch.ll | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/llvm/test/CodeGen/RISCV/branch.ll b/llvm/test/CodeGen/RISCV/branch.ll index f6d9299b07d..71daf0e57b9 100644 --- a/llvm/test/CodeGen/RISCV/branch.ll +++ b/llvm/test/CodeGen/RISCV/branch.ll @@ -2,11 +2,6 @@ ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \ ; RUN: | FileCheck -check-prefix=RV32I %s - -; RUN: llc -mtriple=riscv32 -mattr=+c -filetype=obj < %s \ -; RUN: |llvm-objdump -d -triple=riscv32 -mattr=+c -riscv-no-aliases - \ -; RUN: | FileCheck -check-prefix=RV32IC %s - define void @foo(i32 %a, i32 *%b, i1 %c) { ; RV32I-LABEL: foo: ; RV32I: # %bb.0: @@ -47,34 +42,6 @@ define void @foo(i32 %a, i32 *%b, i1 %c) { ; RV32I-NEXT: lw a0, 0(a1) ; RV32I-NEXT: .LBB0_12: # %end ; RV32I-NEXT: ret - -; RV32IC-LABEL: foo: -; RV32IC: c.lw a3, 0(a1) -; RV32IC-NEXT: beq a3, a0, 68 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bne a3, a0, 62 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: blt a3, a0, 56 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bge a3, a0, 50 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bltu a3, a0, 44 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bgeu a3, a0, 38 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: blt a0, a3, 32 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bge a0, a3, 26 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bltu a0, a3, 20 -; RV32IC-NEXT: c.lw a3, 0(a1) -; RV32IC-NEXT: bgeu a0, a3, 14 -; RV32IC-NEXT: c.lw a0, 0(a1) -; RV32IC-NEXT: andi a0, a2, 1 -; RV32IC-NEXT: c.bnez a0, 4 -; RV32IC-NEXT: c.lw a0, 0(a1) -; RV32IC-NEXT: c.jr ra - %val1 = load volatile i32, i32* %b %tst1 = icmp eq i32 %val1, %a br i1 %tst1, label %end, label %test2 |

