Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i686-none-linux -verify-machineinstrs | FileCheck %s
      2 
      3 define i32* @test_atomic_ptr_load(i32** %a0) {
      4 ; CHECK: test_atomic_ptr_load
      5 ; CHECK: movl
      6 ; CHECK: movl
      7 ; CHECK: ret
      8 0:
      9   %0 = load atomic i32*, i32** %a0 seq_cst, align 4
     10   ret i32* %0
     11 }
     12 
     13 define void @test_atomic_ptr_store(i32* %a0, i32** %a1) {
     14 ; CHECK: test_atomic_ptr_store
     15 ; CHECK: movl
     16 ; CHECK: movl
     17 ; CHECK: xchgl
     18 ; CHECK: ret
     19 0:
     20   store atomic i32* %a0, i32** %a1 seq_cst, align 4
     21   ret void
     22 }
     23