summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-05-22 18:00:24 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-05-22 18:00:24 +0000
commit493c5f1bc459862adf51b17bb6eadbf644a598d8 (patch)
treec71ba00050c1961405cdaabf19f8cceb122d81c6 /llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll
parentf15a05623e5263f9232f8796587ee1cedcf7b15c (diff)
downloadbcm5719-llvm-493c5f1bc459862adf51b17bb6eadbf644a598d8.tar.gz
bcm5719-llvm-493c5f1bc459862adf51b17bb6eadbf644a598d8.zip
R600: Expand mul24 for GPUs without it
llvm-svn: 209458
Diffstat (limited to 'llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll')
-rw-r--r--llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll b/llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll
index 33a1b8204e2..8ee3520daea 100644
--- a/llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll
+++ b/llvm/test/CodeGen/R600/llvm.AMDGPU.imul24.ll
@@ -1,14 +1,15 @@
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
; RUN: llc -march=r600 -mcpu=cayman -verify-machineinstrs < %s | FileCheck -check-prefix=CM -check-prefix=FUNC %s
+; RUN: llc -march=r600 -mcpu=redwood -verify-machineinstrs < %s | FileCheck -check-prefix=R600 -check-prefix=FUNC %s
declare i32 @llvm.AMDGPU.imul24(i32, i32) nounwind readnone
; FUNC-LABEL: @test_imul24
; SI: V_MUL_I32_I24
; CM: MUL_INT24
+; R600: MULLO_INT
define void @test_imul24(i32 addrspace(1)* %out, i32 %src0, i32 %src1) nounwind {
%mul = call i32 @llvm.AMDGPU.imul24(i32 %src0, i32 %src1) nounwind readnone
store i32 %mul, i32 addrspace(1)* %out, align 4
ret void
}
-
OpenPOWER on IntegriCloud