brintos

brintos / llvm-project-archived public Read only

0
0
Text · 418 B · 5c44d89 Raw
17 lines · plain
1; RUN: llc -mattr=avr6 < %s -mtriple=avr | FileCheck %s2 3; CHECK-LABEL: atomic_load644; CHECK: call __sync_val_compare_and_swap_85define i64 @atomic_load64(ptr %foo) {6  %val = load atomic i64, ptr %foo unordered, align 87  ret i64 %val8}9 10; CHECK-LABEL: atomic_load_sub6411; CHECK: call __sync_fetch_and_sub_812define i64 @atomic_load_sub64(ptr %foo) {13  %val = atomicrmw sub ptr %foo, i64 13 seq_cst14  ret i64 %val15}16 17