[llvm] r281021 - [Sparc][LEON] Unit test for CASA instruction supported by some LEON processors added.

Chris Dewhurst via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 02:08:14 PDT 2016


Author: lerochris
Date: Fri Sep  9 04:08:13 2016
New Revision: 281021

URL: http://llvm.org/viewvc/llvm-project?rev=281021&view=rev
Log:
[Sparc][LEON] Unit test for CASA instruction supported by some LEON processors added.

Added:
    llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll   (with props)

Added: llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll?rev=281021&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll (added)
+++ llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll Fri Sep  9 04:08:13 2016
@@ -0,0 +1,14 @@
+; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+hasleoncasa -o - | FileCheck %s
+; RUN: llc %s -O0 -march=sparc -mcpu=gr712rc -o - | FileCheck %s
+; RUN: llc %s -O0 -march=sparc -mcpu=leon4 -o - | FileCheck %s
+; RUN: llc %s -O0 -march=sparc -mcpu=gr740 -o - | FileCheck %s
+
+; CHECK-LABEL: casa_test
+; CHECK:       casa [%o0] 10, %o3, %o2
+define void @casa_test(i32* %ptr) {
+  %pair = cmpxchg i32* %ptr, i32 0, i32 1 monotonic monotonic
+  %r = extractvalue { i32, i1 } %pair, 0
+  %stored1  = icmp eq i32 %r, 0
+
+  ret void
+}

Propchange: llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll
------------------------------------------------------------------------------
    svn:executable = *




More information about the llvm-commits mailing list