Skip to content

Commit

Permalink
Fixed a typo in the test s/CEHCK/CHECK/
Browse files Browse the repository at this point in the history
Summary:
Turns out the test was not correct, I had to adjust the test to work.  I
also added CHECK-LABELs for better error messages from FileCheck while
I'm here.

Reviewers: jsji

Subscribers: nemanjai, eraman, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58614

llvm-svn: 355079
  • Loading branch information
gribozavr committed Feb 28, 2019
1 parent 87aeff8 commit 3d0576b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions llvm/test/CodeGen/PowerPC/inlineasm-vsx-reg.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ entry:
%0 = tail call { i32, <4 x float> } asm "xxsldwi ${1:x},${2:x},${2:x},3;\0Axscvspdp ${1:x},${1:x};\0Afctiw $1,$1;\0Amfvsrd $0,${1:x};\0A", "=r,=&^wa,^wa"(<4 x float> %__A)
%asmresult = extractvalue { i32, <4 x float> } %0, 0
ret i32 %asmresult
; CHECK-LABEL: foo:
; CHECK: #APP
; CHECK: xxsldwi vs0, v2, v2, 3
; CHECK: xscvspdp f0, f0
Expand All @@ -18,19 +19,21 @@ entry:
%asmresult = extractvalue { i32, <4 x float> } %0, 0
ret i32 %asmresult

; CHECK-LABEL: foo1:
; CHECK: #APP
; CHECK: xxsldwi vs0, v2, v2, 3
; CHECK: xscvspdp f0, f0
; CEHCK: fctiw f0, f0
; CHECK: fctiw f0, f0
; CHECK: mffprd r3, f0
; CEHCK: extsw r3, r3
; CHECK: #NO_APP
; CHECK: extsw r3, r3
}

define double @test() {
entry:
%0 = tail call double asm "mtvsrd ${0:x}, 1", "=^ws,~{f0},~{f1},~{f2},~{f3},~{f4},~{f5},~{f6},~{f7},~{f8},~{f9},~{f10},~{f11},~{f12},~{f13},~{f14}"()
ret double %0
; CHECK-LABEL: test:
; CHECK: #APP
; CHECK: mtvsrd v2, r1
; CHECK: #NO_APP
Expand Down

0 comments on commit 3d0576b

Please sign in to comment.