aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AVR/volatile-null.ll
blob: fa49e07eb06800ad0bb268cd5aae830e606c081b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc < %s -mtriple=avr | FileCheck %s

define i8 @load_volatile_null() {
; CHECK-LABEL: load_volatile_null:
; CHECK: lds r24, 0
    %result = load volatile i8, ptr null
    ret i8 %result
}

define void @store_volatile_null(i8 %a) {
; CHECK-LABEL: store_volatile_null:
; CHECK: sts 0, r24
    store volatile i8 %a, ptr null
    ret void
}