2016-04-15 03:09:28 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=fiji -O0 -stop-after=irtranslator -global-isel %s -o - 2>&1 | FileCheck %s
|
|
|
|
; REQUIRES: global-isel
|
|
|
|
; This file checks that the translation from llvm IR to generic MachineInstr
|
|
|
|
; is correct.
|
|
|
|
|
|
|
|
; Tests for add.
|
|
|
|
; CHECK: name: addi32
|
2016-09-09 19:46:34 +08:00
|
|
|
; CHECK: {{%[0-9]+}}(s32) = G_ADD
|
2017-05-18 05:56:25 +08:00
|
|
|
define amdgpu_kernel void @addi32(i32 %arg1, i32 %arg2) {
|
2016-04-15 03:09:28 +08:00
|
|
|
%res = add i32 %arg1, %arg2
|
2017-05-18 05:56:25 +08:00
|
|
|
store i32 %res, i32 addrspace(1)* undef
|
|
|
|
ret void
|
2016-04-15 03:09:28 +08:00
|
|
|
}
|