1 ; RUN: llc -march=amdgcn -mcpu=fiji -O0 -stop-after=irtranslator -global-isel %s -o - 2>&1 | FileCheck %s 2 ; REQUIRES: global-isel 3 ; This file checks that the translation from llvm IR to generic MachineInstr 4 ; is correct. 5 6 ; Tests for add. 7 ; CHECK: name: addi32 8 ; CHECK: G_ADD i32 9 define i32 @addi32(i32 %arg1, i32 %arg2) { 10 %res = add i32 %arg1, %arg2 11 ret i32 %res 12 } 13