brintos

brintos / llvm-project-archived public Read only

0
0
Text · 418 B · 832fd4a Raw
17 lines · plain
1; RUN: llc -mattr=avr6 < %s -mtriple=avr | FileCheck %s2 3; CHECK-LABEL: atomic_load324; CHECK: call __sync_val_compare_and_swap_45define i32 @atomic_load32(ptr %foo) {6  %val = load atomic i32, ptr %foo unordered, align 47  ret i32 %val8}9 10; CHECK-LABEL: atomic_load_sub3211; CHECK: call __sync_fetch_and_sub_412define i32 @atomic_load_sub32(ptr %foo) {13  %val = atomicrmw sub ptr %foo, i32 13 seq_cst14  ret i32 %val15}16 17