diff options
author | Kai Nacke <kai@redstar.de> | 2022-08-18 06:14:15 -0400 |
---|---|---|
committer | Kai Nacke <kai@redstar.de> | 2022-11-13 11:07:49 -0500 |
commit | 09d1e50337350851cd470fb584c30d387f1e890e (patch) | |
tree | 6fea0c2116426f2f520233d7a7912662ee6e2794 | |
parent | b629dd1f467308f6cc2671fa6f81ab6c87ffc4cf (diff) | |
download | llvm-09d1e50337350851cd470fb584c30d387f1e890e.zip llvm-09d1e50337350851cd470fb584c30d387f1e890e.tar.gz llvm-09d1e50337350851cd470fb584c30d387f1e890e.tar.bz2 |
[m88k] Update cond.ll test case.
Disable the delay slot filler, and check for all instructions.
-rw-r--r-- | llvm/test/CodeGen/M88k/cond.ll | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/M88k/cond.ll b/llvm/test/CodeGen/M88k/cond.ll index fccc9e9..8eb7371 100644 --- a/llvm/test/CodeGen/M88k/cond.ll +++ b/llvm/test/CodeGen/M88k/cond.ll @@ -1,13 +1,16 @@ ; Test conditionals. ; -; RUN: llc < %s -mtriple=m88k-openbsd -mcpu=mc88100 -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -mtriple=m88k-openbsd -mcpu=mc88110 -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -mtriple=m88k-openbsd -mcpu=mc88100 -verify-machineinstrs -m88k-enable-delay-slot-filler=false | FileCheck %s +; RUN: llc < %s -mtriple=m88k-openbsd -mcpu=mc88110 -verify-machineinstrs -m88k-enable-delay-slot-filler=false | FileCheck %s define i32 @f1(i32 %a, i32 %b) { ; CHECK-LABEL: f1: -; CHECK: bcnd.n ne0, %r2, .LBB0_{{[0-9]}} -; CHECK: jmp.n %r1 -; CHECK: jmp.n %r1 +; CHECK: bcnd ne0, %r2, [[LABEL:.LBB[_0-9]+]] +; CHECK: and %r2, %r2, %r3 +; CHECK: jmp %r1 +; CHECK: [[LABEL]]: +; CHECK: or %r2, %r0, 0 +; CHECK: jmp %r1 %cmp = icmp eq i32 %a, 0 br i1 %cmp, label %compute, label %exit @@ -22,9 +25,12 @@ exit: define i32 @f2(i32 %a, i32 %b) { ; CHECK-LABEL: f2: ; CHECK: cmp [[REG:%r[0-9]+]], %r2, %r3 -; CHECK-NEXT: bb1.n 2, [[REG]], .{{[A-Z0-9]+}} -; CHECK: jmp.n %r1 -; CHECK: jmp.n %r1 +; CHECK-NEXT: bb1 2, [[REG]], [[LABEL:.LBB[_0-9]+]] +; CHECK: and %r2, %r2, %r3 +; CHECK: jmp %r1 +; CHECK: [[LABEL]]: +; CHECK: or %r2, %r0, 0 +; CHECK: jmp %r1 %cmp = icmp ne i32 %a, %b br i1 %cmp, label %compute, label %exit @@ -38,7 +44,11 @@ exit: define i32 @f3(i1 noundef zeroext %cnd) { ; CHECK-LABEL: f3: -; CHECK: bb0.n 0, {{%r[0-9]+}}, .{{[A-Z0-9]+}} +; CHECK: bb0 0, %r2, [[LABEL:.LBB[_0-9]+]] +; CHECK: or %r2, %r0, 42 +; CHECK: jmp %r1 +; CHECK: [[LABEL]]: +; CHECK: or %r2, %r0, 84 ; CHECK: jmp %r1 br i1 %cnd, label %true, label %false @@ -51,7 +61,11 @@ false: define i32 @f4(i1 noundef zeroext %cnd) { ; CHECK-LABEL: f4: -; CHECK: bb1.n 0, {{%r[0-9]+}}, .{{[A-Z0-9]+}} +; CHECK: bb1 0, %r2, [[LABEL:.LBB[_0-9]+]] +; CHECK: or %r2, %r0, 42 +; CHECK: jmp %r1 +; CHECK: [[LABEL]]: +; CHECK: or %r2, %r0, 84 ; CHECK: jmp %r1 %not = xor i1 %cnd, true br i1 %not, label %true, label %false |