diff options
author | Amaury Séchet <deadalnix@gmail.com> | 2022-08-05 19:46:26 +0000 |
---|---|---|
committer | Amaury Séchet <deadalnix@gmail.com> | 2022-08-05 19:58:30 +0000 |
commit | cbd2b7cda45b01e521e563415f9a2994bee2dd0a (patch) | |
tree | 9b01006bb3922c191c7ad2b970cde159c96e81a6 | |
parent | 1b9faafe911ef05c893553cb79cb35db063f1bb3 (diff) |
[NFC] Regenerates X86's win64-bool.ll
-rw-r--r-- | llvm/test/CodeGen/X86/win64-bool.ll | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/X86/win64-bool.ll b/llvm/test/CodeGen/X86/win64-bool.ll index cb77c7ed201e..023df126fd6f 100644 --- a/llvm/test/CodeGen/X86/win64-bool.ll +++ b/llvm/test/CodeGen/X86/win64-bool.ll @@ -1,23 +1,25 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s --check-prefix=CHECK ; RUN: llc < %s -mtriple=x86_64-windows-gnu | FileCheck %s --check-prefix=CHECK define i32 @pass_bool(i1 zeroext %b) { +; CHECK-LABEL: pass_bool: +; CHECK: # %bb.0: # %entry +; CHECK-NEXT: xorl %edx, %edx +; CHECK-NEXT: testb %cl, %cl +; CHECK-NEXT: movl $66, %eax +; CHECK-NEXT: cmovel %edx, %eax +; CHECK-NEXT: retq entry: %cond = select i1 %b, i32 66, i32 0 ret i32 %cond } -; CHECK-LABEL: pass_bool: -; CHECK-DAG: testb %cl, %cl -; CHECK-DAG: movl $66, -; CHECK: cmovel {{.*}}, %eax -; CHECK: retq - define zeroext i1 @ret_true() { +; CHECK-LABEL: ret_true: +; CHECK: # %bb.0: # %entry +; CHECK-NEXT: movb $1, %al +; CHECK-NEXT: retq entry: ret i1 true } - -; CHECK-LABEL: ret_true: -; CHECK: movb $1, %al -; CHECK: retq |