brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 6ae7405 Raw
54 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s3 4define range(i32 0, 2) i32 @foo(ptr %this) {5; CHECK-LABEL: foo:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    movzbl (%rdi), %eax8; CHECK-NEXT:    retq9entry:10  %call = load volatile i1, ptr %this, align 111  %spec.select = zext i1 %call to i3212  ret i32 %spec.select13}14 15define range(i32 0, 2) i32 @bar(ptr %this) {16; CHECK-LABEL: bar:17; CHECK:       # %bb.0: # %entry18; CHECK-NEXT:    xorl %edi, %edi19; CHECK-NEXT:    jmp foo@PLT # TAILCALL20entry:21  %ret = musttail call i32 @foo(ptr null)22  ret i32 %ret23}24 25declare i64 @llvm.llround.f32(float) nounwind readnone26define range(i64 0, 8) i64 @testmsxs(float %x) {27; CHECK-LABEL: testmsxs:28; CHECK:       # %bb.0: # %entry29; CHECK-NEXT:    jmp llroundf@PLT # TAILCALL30entry:31  %ret = tail call i64 @llvm.llround.f32(float %x)32  ret i64 %ret33}34 35declare i32 @callee()36 37define range(i32 0, 2) i32 @func_with_range_attr() {38; CHECK-LABEL: func_with_range_attr:39; CHECK:       # %bb.0: # %entry40; CHECK-NEXT:    jmp callee@PLT # TAILCALL41entry:42  %ret = musttail call i32 @callee()43  ret i32 %ret44}45 46define i32 @call_with_range_attr() {47; CHECK-LABEL: call_with_range_attr:48; CHECK:       # %bb.0: # %entry49; CHECK-NEXT:    jmp callee@PLT # TAILCALL50entry:51  %ret = musttail call range(i32 0, 2) i32 @callee()52  ret i32 %ret53}54