[llvm] d050520 - [X86] Regenerate switch-default-only.ll

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 20 12:42:48 PST 2022


Author: Simon Pilgrim
Date: 2022-02-20T20:42:36Z
New Revision: d0505201c468ec9ed7f738af0ae3da58faf24a0f

URL: https://github.com/llvm/llvm-project/commit/d0505201c468ec9ed7f738af0ae3da58faf24a0f
DIFF: https://github.com/llvm/llvm-project/commit/d0505201c468ec9ed7f738af0ae3da58faf24a0f.diff

LOG: [X86] Regenerate switch-default-only.ll

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/switch-default-only.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/switch-default-only.ll b/llvm/test/CodeGen/X86/switch-default-only.ll
index 4310e40b57a6..ac40fbbe389d 100644
--- a/llvm/test/CodeGen/X86/switch-default-only.ll
+++ b/llvm/test/CodeGen/X86/switch-default-only.ll
@@ -1,12 +1,14 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
 ; RUN: llc -O0 -fast-isel=false -mtriple=i686-- < %s | FileCheck %s
 
 ; No need for branching when the default and only destination follows
 ; immediately after the switch.
-; CHECK-LABEL: no_branch:
-; CHECK-NOT: jmp
-; CHECK: ret
-
 define void @no_branch(i32 %x) {
+; CHECK-LABEL: no_branch:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT:  # %bb.1: # %exit
+; CHECK-NEXT:    retl
 entry:
   switch i32 %x, label %exit [ ]
 exit:


        


More information about the llvm-commits mailing list