1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-02 00:42:52 +01:00
llvm-mirror/test/CodeGen/PTX/parameter-order.ll
Che-Liang Chiou 2b173c0443 ptx: fix parameter order that is reversed
llvm-svn: 127874
2011-03-18 11:23:56 +00:00

9 lines
248 B
LLVM

; RUN: llc < %s -march=ptx | FileCheck %s
; CHECK: .func (.reg .u32 r0) test_parameter_order (.reg .u32 r1, .reg .u32 r2)
define ptx_device i32 @test_parameter_order(i32 %x, i32 %y) {
; CHECK: sub.u32 r0, r1, r2
%z = sub i32 %x, %y
ret i32 %z
}