llvm.org GIT mirror llvm / 17569fe
Some additional tests for Thumb atomic load and store (which I somehow forgot to commit earlier). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140074 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Friedman 8 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3434 ; ARM: test3
3535 ; ARM: ldrb
3636 ; ARM: strb
37 ; THUMBTWO: test3
38 ; THUMBTWO: ldrb
39 ; THUMBTWO: strb
40 ; THUMBONE: test3
41 ; THUMBONE: ldrb
42 ; THUMBONE: strb
3743 %val = load atomic i8* %ptr1 unordered, align 1
3844 store atomic i8 %val, i8* %ptr2 unordered, align 1
3945 ret void
4046 }
47
48 define void @test4(i8* %ptr1, i8* %ptr2) {
49 ; THUMBONE: test4
50 ; THUMBONE: ___sync_val_compare_and_swap_1
51 ; THUMBONE: ___sync_lock_test_and_set_1
52 %val = load atomic i8* %ptr1 seq_cst, align 1
53 store atomic i8 %val, i8* %ptr2 seq_cst, align 1
54 ret void
55 }