[llvm] r367543 - [ARM] Regenerate BSWAP16 tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 04:12:10 PDT 2019
Author: rksimon
Date: Thu Aug 1 04:12:10 2019
New Revision: 367543
URL: http://llvm.org/viewvc/llvm-project?rev=367543&view=rev
Log:
[ARM] Regenerate BSWAP16 tests
Modified:
llvm/trunk/test/CodeGen/ARM/bswap16.ll
Modified: llvm/trunk/test/CodeGen/ARM/bswap16.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/bswap16.ll?rev=367543&r1=367542&r2=367543&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/bswap16.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/bswap16.ll Thu Aug 1 04:12:10 2019
@@ -1,42 +1,43 @@
-; RUN: llc -mtriple=arm-darwin -mattr=v6 < %s | FileCheck %s
-; RUN: llc -mtriple=thumb-darwin -mattr=v6 < %s | FileCheck %s
-
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=arm-darwin -mattr=v6 | FileCheck %s --check-prefixes=CHECK,ARM
+; RUN: llc < %s -mtriple=thumb-darwin -mattr=v6 | FileCheck %s --check-prefixes=CHECK,THUMB
define void @test1(i16* nocapture %data) {
+; CHECK-LABEL: test1:
+; CHECK: @ %bb.0: @ %entry
+; CHECK-NEXT: ldrh r1, [r0]
+; CHECK-NEXT: rev16 r1, r1
+; CHECK-NEXT: strh r1, [r0]
+; CHECK-NEXT: bx lr
entry:
%0 = load i16, i16* %data, align 2
%1 = tail call i16 @llvm.bswap.i16(i16 %0)
store i16 %1, i16* %data, align 2
ret void
-
- ; CHECK-LABEL: test1:
- ; CHECK: ldrh r[[R1:[0-9]+]], [r0]
- ; CHECK: rev16 r[[R1]], r[[R1]]
- ; CHECK: strh r[[R1]], [r0]
}
-
define void @test2(i16* nocapture %data, i16 zeroext %in) {
+; CHECK-LABEL: test2:
+; CHECK: @ %bb.0: @ %entry
+; CHECK-NEXT: rev16 r1, r1
+; CHECK-NEXT: strh r1, [r0]
+; CHECK-NEXT: bx lr
entry:
%0 = tail call i16 @llvm.bswap.i16(i16 %in)
store i16 %0, i16* %data, align 2
ret void
-
- ; CHECK-LABEL: test2:
- ; CHECK: rev16 r[[R1:[0-9]+]], r1
- ; CHECK: strh r[[R1]], [r0]
}
-
define i16 @test3(i16* nocapture %data) {
+; CHECK-LABEL: test3:
+; CHECK: @ %bb.0: @ %entry
+; CHECK-NEXT: ldrh r0, [r0]
+; CHECK-NEXT: rev16 r0, r0
+; CHECK-NEXT: bx lr
entry:
%0 = load i16, i16* %data, align 2
%1 = tail call i16 @llvm.bswap.i16(i16 %0)
ret i16 %1
-
- ; CHECK-LABEL: test3:
- ; CHECK: ldrh r[[R0:[0-9]+]], [r0]
- ; CHECK: rev16 r[[R0]], r0
}
declare i16 @llvm.bswap.i16(i16)
More information about the llvm-commits
mailing list