2011-04-20 15:37:17 +00:00
|
|
|
; RUN: llc < %s -march=ptx32 | FileCheck %s
|
2011-03-18 11:23:56 +00:00
|
|
|
|
2011-09-22 16:45:51 +00:00
|
|
|
; CHECK: .func (.reg .b32 %ret{{[0-9]+}}) test_parameter_order (.reg .b32 %param{{[0-9]+}}, .reg .b32 %param{{[0-9]+}}, .reg .b32 %param{{[0-9]+}}, .reg .b32 %param{{[0-9]+}})
|
2011-04-21 10:56:58 +00:00
|
|
|
define ptx_device i32 @test_parameter_order(float %a, i32 %b, i32 %c, float %d) {
|
2011-09-22 16:45:51 +00:00
|
|
|
; CHECK: sub.u32 %ret{{[0-9]+}}, %r{{[0-9]+}}, %r{{[0-9]+}}
|
2011-04-21 10:56:58 +00:00
|
|
|
%result = sub i32 %b, %c
|
|
|
|
ret i32 %result
|
2011-03-18 11:23:56 +00:00
|
|
|
}
|