brintos

brintos / llvm-project-archived public Read only

0
0
Text · 603 B · 2773f01 Raw
21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-- -mattr=-sse -O0 | FileCheck %s3; PR96754 5define i32 @t() {6; CHECK-LABEL: t:7; CHECK:       # %bb.0:8; CHECK-NEXT:    movl $1, -{{[0-9]+}}(%rsp)9; CHECK-NEXT:    lock orl $0, -{{[0-9]+}}(%rsp)10; CHECK-NEXT:    lock decl -{{[0-9]+}}(%rsp)11; CHECK-NEXT:    lock orl $0, -{{[0-9]+}}(%rsp)12; CHECK-NEXT:    xorl %eax, %eax13; CHECK-NEXT:    retq14  %i = alloca i32, align 415  store i32 1, ptr %i, align 416  fence seq_cst17  %t0 = atomicrmw sub ptr %i, i32 1 monotonic18  fence seq_cst19  ret i32 020}21