brintos

brintos / llvm-project-archived public Read only

0
0
Text · 539 B · 109d177 Raw
16 lines · plain
1; RUN: llc -mtriple=bpfel -filetype=obj < %s 2>&1 >/dev/null | FileCheck %s2 3; CHECK: warning: immediate out of range, shall fit in 32 bits4define dso_local void @test_1() naked {5  tail call void asm sideeffect6    "r1 = 40; if r1 == 0x1deadbeef goto +0; r0 = 0; exit;", "~{r0},~{r1}"()7  unreachable8}9 10; CHECK: warning: immediate out of range, shall fit in 32 bits11define dso_local void @test_2() naked {12  tail call void asm sideeffect13    "r1 = 40; if r1 == 0xffffffff00000000 goto +0; r0 = 0; exit;", "~{r0},~{r1}"()14  unreachable15}16