27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s3 4; This used to crash due to Live Variable analysis removing the redundant eax5; and edx clobbers, but not removing the inline asm flag operands that proceed6; them.7 8@test_mem = dso_local global [16 x i8] c"UUUUUUUUUUUUUUUU", align 169 10; Function Attrs: nounwind uwtable11define dso_local void @foo() local_unnamed_addr {12; CHECK-LABEL: foo:13; CHECK: # %bb.0: # %entry14; CHECK-NEXT: #APP15; CHECK-EMPTY:16; CHECK-NEXT: clc17; CHECK-NEXT: cmpxchg8b test_mem(%rip)18; CHECK-NEXT: cmpxchg16b test_mem(%rip)19; CHECK-NEXT: clc20; CHECK-EMPTY:21; CHECK-NEXT: #NO_APP22; CHECK-NEXT: retq23entry:24 tail call void asm sideeffect inteldialect "clc\0A\09cmpxchg8b $0\0A\09cmpxchg16b $1\0A\09clc", "=*m,=*m,~{eax},~{edx},~{flags},~{rax},~{rdx},~{dirflag},~{fpsr},~{flags}"(ptr elementtype([16 x i8]) nonnull @test_mem, ptr elementtype([16 x i8]) nonnull @test_mem) #125 ret void26}27