[SDAG] Fix a bug in the DAG combiner where we would fail to return the
[oota-llvm.git] / test / CodeGen / SystemZ / atomic-load-02.ll
index 2c9bbdb488a1360681a4201d592ee58e88a74f1a..d9bec60f4c1b1a06b611c00db9b69d769cfab688 100644 (file)
@@ -2,11 +2,10 @@
 ;
 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
 
-; This is just a placeholder to make sure that loads are handled.
-; The CS-based sequence is probably far too conservative.
 define i16 @f1(i16 *%src) {
 ; CHECK-LABEL: f1:
-; CHECK: cs
+; CHECK: bcr 1{{[45]}}, %r0
+; CHECK: lh %r2, 0(%r2)
 ; CHECK: br %r14
   %val = load atomic i16 *%src seq_cst, align 2
   ret i16 %val