brintos

brintos / llvm-project-archived public Read only

0
0
Text · 786 B · 9c2061e Raw
26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-none-linux -verify-machineinstrs | FileCheck %s3 4define ptr @test_atomic_ptr_load(ptr %a0) {5; CHECK-LABEL: test_atomic_ptr_load:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax8; CHECK-NEXT:    movl (%eax), %eax9; CHECK-NEXT:    retl10entry:11  %0 = load atomic ptr, ptr %a0 seq_cst, align 412  ret ptr %013}14 15define void @test_atomic_ptr_store(ptr %a0, ptr %a1) {16; CHECK-LABEL: test_atomic_ptr_store:17; CHECK:       # %bb.0: # %entry18; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax19; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %ecx20; CHECK-NEXT:    xchgl %ecx, (%eax)21; CHECK-NEXT:    retl22entry:23store atomic ptr %a0, ptr %a1 seq_cst, align 424  ret void25}26