mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
88d3367baa
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127873 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
400 B
LLVM
22 lines
400 B
LLVM
; RUN: llc < %s -march=ptx | FileCheck %s
|
|
|
|
define ptx_device void @test_bra_direct() {
|
|
; CHECK: bra $L__BB0_1;
|
|
entry:
|
|
br label %loop
|
|
loop:
|
|
br label %loop
|
|
}
|
|
|
|
define ptx_device i32 @test_bra_cond_direct(i32 %x, i32 %y) {
|
|
entry:
|
|
%p = icmp ugt i32 %x, %y
|
|
br i1 %p, label %clause.if, label %clause.else
|
|
clause.if:
|
|
; CHECK: mov.u32 r0, r1
|
|
ret i32 %x
|
|
clause.else:
|
|
; CHECK: mov.u32 r0, r2
|
|
ret i32 %y
|
|
}
|