Thumb2 assembly parsing and encoding for TST.
[oota-llvm.git] / test / CodeGen / PTX / simple-call.ll
1 ; RUN: llc < %s -march=ptx32 -mattr=sm20 | FileCheck %s
2
3 define ptx_device void @test_add(float %x, float %y) {
4 ; CHECK: ret;
5         %z = fadd float %x, %y
6         ret void
7 }
8
9 define ptx_device float @test_call(float %x, float %y) {
10   %a = fadd float %x, %y
11 ; CHECK: call.uni test_add, (__ret_{{[0-9]+}}, __ret_{{[0-9]+}});
12   call void @test_add(float %a, float %y)
13   ret float %a
14 }