1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
4 declare dso_local void @bar()
6 define void @test1(i64 %foo) nounwind {
9 ; CHECK-NEXT: btq $32, %rdi
10 ; CHECK-NEXT: jb bar # TAILCALL
11 ; CHECK-NEXT: # %bb.1: # %if.end
13 %and = and i64 %foo, 4294967296
14 %tobool = icmp eq i64 %and, 0
15 br i1 %tobool, label %if.end, label %if.then
18 tail call void @bar() nounwind
25 define void @test2(i64 %foo) nounwind {
28 ; CHECK-NEXT: testl %edi, %edi
29 ; CHECK-NEXT: js bar # TAILCALL
30 ; CHECK-NEXT: # %bb.1: # %if.end
32 %and = and i64 %foo, 2147483648
33 %tobool = icmp eq i64 %and, 0
34 br i1 %tobool, label %if.end, label %if.then
37 tail call void @bar() nounwind