1 ; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 %s -o - | FileCheck %s
4 define i32 @max(i8 %ctx, i32* %ptr, i32 %val)
7 ; CHECK: cmp [[old:r[0-9]*]], [[val:r[0-9]*]]
8 ; CHECK: movhi {{r[0-9]*}}, [[old]]
9 %old = atomicrmw umax i32* %ptr, i32 %val monotonic
14 define i32 @min(i8 %ctx, i32* %ptr, i32 %val)
17 ; CHECK: cmp [[old:r[0-9]*]], [[val:r[0-9]*]]
18 ; CHECK: movls {{r[0-9]*}}, [[old]]
19 %old = atomicrmw umin i32* %ptr, i32 %val monotonic