1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
4 define range(i32 0, 2) i32 @foo(ptr %this) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: movzbl (%rdi), %eax
10 %call = load volatile i1, ptr %this, align 1
11 %spec.select = zext i1 %call to i32
15 define range(i32 0, 2) i32 @bar(ptr %this) {
17 ; CHECK: # %bb.0: # %entry
18 ; CHECK-NEXT: xorl %edi, %edi
19 ; CHECK-NEXT: jmp foo@PLT # TAILCALL
21 %ret = musttail call i32 @foo(ptr null)
25 declare i64 @llvm.llround.f32(float) nounwind readnone
26 define range(i64 0, 8) i64 @testmsxs(float %x) {
27 ; CHECK-LABEL: testmsxs:
28 ; CHECK: # %bb.0: # %entry
29 ; CHECK-NEXT: jmp llroundf@PLT # TAILCALL
31 %ret = tail call i64 @llvm.llround.f32(float %x)
37 define range(i32 0, 2) i32 @func_with_range_attr() {
38 ; CHECK-LABEL: func_with_range_attr:
39 ; CHECK: # %bb.0: # %entry
40 ; CHECK-NEXT: jmp callee@PLT # TAILCALL
42 %ret = musttail call i32 @callee()
46 define i32 @call_with_range_attr() {
47 ; CHECK-LABEL: call_with_range_attr:
48 ; CHECK: # %bb.0: # %entry
49 ; CHECK-NEXT: jmp callee@PLT # TAILCALL
51 %ret = musttail call range(i32 0, 2) i32 @callee()