Dylan McKay | a789f40 | 2016-11-16 21:58:04 +0000 | [diff] [blame] | 1 | ; RUN: llc -mattr=avr6 < %s -march=avr | FileCheck %s |
2 | |||||
3 | ; Checks that atomic fences are simply removed from IR. | ||||
4 | ; AVR is always singlethreaded so fences do nothing. | ||||
5 | |||||
6 | ; CHECK_LABEL: atomic_fence8 | ||||
Francis Visoiu Mistrih | 25528d6 | 2017-12-04 17:18:51 +0000 | [diff] [blame] | 7 | ; CHECK: ; %bb.0: |
Dylan McKay | a789f40 | 2016-11-16 21:58:04 +0000 | [diff] [blame] | 8 | ; CHECK-NEXT: ret |
9 | define void @atomic_fence8() { | ||||
10 | fence acquire | ||||
11 | ret void | ||||
12 | } | ||||
13 |