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