summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-04-03 20:19:29 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-04-03 20:19:29 +0000
commita0150cb6a9543d5d48f70f22fc6eba3a08186584 (patch)
tree0aa4984d85ec4c8c094fe01d1784ae963dd40b14 /llvm/test
parent7ed0b5235a2d97bf8d81e36401478ce056152152 (diff)
downloadbcm5719-llvm-a0150cb6a9543d5d48f70f22fc6eba3a08186584.tar.gz
bcm5719-llvm-a0150cb6a9543d5d48f70f22fc6eba3a08186584.zip
R600: Correct opcode for BFE_INT
Acording to AMD documentation, the correct opcode for BFE_INT is 0x5, not 0x4 Fixes Arithm/Absdiff.Mat/3 OpenCV test Patch by: Bruno Jiménez llvm-svn: 205562
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll b/llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll
index c3f000a87c6..d15cb329830 100644
--- a/llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll
+++ b/llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll
@@ -1,11 +1,12 @@
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
-; RUN: llc -march=r600 -mcpu=redwood -verify-machineinstrs < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s
+; RUN: llc -march=r600 -mcpu=redwood -show-mc-encoding -verify-machineinstrs < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s
declare i32 @llvm.AMDGPU.bfe.i32(i32, i32, i32) nounwind readnone
; FUNC-LABEL: @bfe_i32_arg_arg_arg
; SI: V_BFE_I32
; EG: BFE_INT
+; EG: encoding: [{{[x0-9a-f]+,[x0-9a-f]+,[x0-9a-f]+,[x0-9a-f]+,[x0-9a-f]+}},0xac
define void @bfe_i32_arg_arg_arg(i32 addrspace(1)* %out, i32 %src0, i32 %src1, i32 %src2) nounwind {
%bfe_i32 = call i32 @llvm.AMDGPU.bfe.i32(i32 %src0, i32 %src1, i32 %src1) nounwind readnone
store i32 %bfe_i32, i32 addrspace(1)* %out, align 4
OpenPOWER on IntegriCloud