1; RUN: llc < %s -mcpu=corei7 -march=x86 -verify-machineinstrs | FileCheck %s
2
3; 64-bit load/store on x86-32
4; FIXME: The generated code can be substantially improved.
5
6define void @test1(i64* %ptr, i64 %val1) {
7; CHECK-LABEL: test1
8; CHECK: lock
9; CHECK-NEXT: cmpxchg8b
10; CHECK-NEXT: jne
11  store atomic i64 %val1, i64* %ptr seq_cst, align 8
12  ret void
13}
14
15define i64 @test2(i64* %ptr) {
16; CHECK-LABEL: test2
17; CHECK: lock
18; CHECK-NEXT: cmpxchg8b
19  %val = load atomic i64, i64* %ptr seq_cst, align 8
20  ret i64 %val
21}
22