diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2011-04-21 10:56:58 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2011-04-21 10:56:58 +0000 |
commit | 14c48e5d66b3a56a80552b34899d390e5dceab4b (patch) | |
tree | 5d32481b74baf0bf869a60225b0305fe025628b8 /llvm/test/CodeGen | |
parent | cdc51569eeb7079ec1ce87d72497680d65d58b24 (diff) | |
download | bcm5719-llvm-14c48e5d66b3a56a80552b34899d390e5dceab4b.tar.gz bcm5719-llvm-14c48e5d66b3a56a80552b34899d390e5dceab4b.zip |
ptx: fix parameter ordering
This patch depends on the prior fix r129908 that changes to use std::find,
rather than std::binary_search, on unordered array.
Patch by Dan Bailey
llvm-svn: 129909
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/PTX/parameter-order.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PTX/parameter-order.ll b/llvm/test/CodeGen/PTX/parameter-order.ll index 8131f13a6e8..95d4a328149 100644 --- a/llvm/test/CodeGen/PTX/parameter-order.ll +++ b/llvm/test/CodeGen/PTX/parameter-order.ll @@ -1,8 +1,8 @@ ; RUN: llc < %s -march=ptx32 | 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: .func (.reg .u32 r0) test_parameter_order (.reg .f32 f1, .reg .u32 r1, .reg .u32 r2, .reg .f32 f2) +define ptx_device i32 @test_parameter_order(float %a, i32 %b, i32 %c, float %d) { ; CHECK: sub.u32 r0, r1, r2 - %z = sub i32 %x, %y - ret i32 %z + %result = sub i32 %b, %c + ret i32 %result } |