[SystemZ] Try to fold shifts into TMxx
[oota-llvm.git] / test / CodeGen / SystemZ / atomic-store-02.ll
1 ; Test 16-bit atomic stores.
2 ;
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5 ; This is just a placeholder to make sure that stores are handled.
6 ; The CS-based sequence is probably far too conservative.
7 define void @f1(i16 %val, i16 *%src) {
8 ; CHECK-LABEL: f1:
9 ; CHECK: cs
10 ; CHECK: br %r14
11   store atomic i16 %val, i16 *%src seq_cst, align 2
12   ret void
13 }