Files
clang-p2996/llvm/test/CodeGen/AVR/atomics/fence.ll
Dylan McKay a789f40002 [AVR] Add the pseudo instruction expansion pass
Summary:
A lot of the pseudo instructions are required because LLVM assumes that
all integers of the same size as the pointer size are legal. This means
that it will not currently expand 16-bit instructions to their 8-bit
variants because it thinks 16-bit types are legal for the operations.

This also adds all of the CodeGen tests that required the pass to run.

Reviewers: arsenm, kparzysz

Subscribers: wdng, mgorny, modocache, llvm-commits

Differential Revision: https://reviews.llvm.org/D26577

llvm-svn: 287162
2016-11-16 21:58:04 +00:00

14 lines
297 B
LLVM

; RUN: llc -mattr=avr6 < %s -march=avr | FileCheck %s
; Checks that atomic fences are simply removed from IR.
; AVR is always singlethreaded so fences do nothing.
; CHECK_LABEL: atomic_fence8
; CHECK: ; BB#0:
; CHECK-NEXT: ret
define void @atomic_fence8() {
fence acquire
ret void
}