]> granicus.if.org Git - llvm/commitdiff
Normalize line endings. NFCI,
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 8 May 2017 13:32:34 +0000 (13:32 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 8 May 2017 13:32:34 +0000 (13:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302422 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/x86-no_caller_saved_registers-preserve.ll
test/CodeGen/X86/x86-no_caller_saved_registers.ll

index 7e370c25e31bb6f47774c5506723fff7048e17f0..3052a0f615ebd54454dd922efbd663cc72695a9d 100644 (file)
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py for function "bar"
 ; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s
 
-;; In functions with 'no_caller_saved_registers' attribute, all registers should\r
+;; In functions with 'no_caller_saved_registers' attribute, all registers should
 ;; be preserved except for registers used for passing/returning arguments.
 ;; In the following function registers %RDI, %RSI and %XMM0 are used to store
 ;; arguments %a0, %a1 and %b0 accordingally. The value is returned in %RAX.
@@ -28,20 +28,20 @@ define x86_64_sysvcc i32 @bar(i32 %a0, i32 %a1, float %b0) #0 {
   ret i32 4
 }
 
-;; Because "bar" has 'no_caller_saved_registers' attribute, function "foo"\r
-;; doesn't need to preserve registers except for the arguments passed \r
+;; Because "bar" has 'no_caller_saved_registers' attribute, function "foo"
+;; doesn't need to preserve registers except for the arguments passed 
 ;; to "bar" (%ESI, %EDI and %XMM0).
 define x86_64_sysvcc float @foo(i32 %a0, i32 %a1, float %b0) {
-; CHECK-LABEL: foo\r
-; CHECK:       movaps  %xmm0, %xmm1\r
-; CHECK-NEXT:  movl  %esi, %ecx\r
-; CHECK-NEXT:  movl  %edi, %edx\r
-; CHECK-NEXT:  callq bar\r
-; CHECK-NEXT:  addl  %edx, %eax\r
-; CHECK-NEXT:  addl  %ecx, %eax\r
-; CHECK-NEXT:  xorps %xmm0, %xmm0\r
-; CHECK-NEXT:  cvtsi2ssl %eax, %xmm0\r
-; CHECK-NEXT:  addss %xmm0, %xmm1\r
+; CHECK-LABEL: foo
+; CHECK:       movaps  %xmm0, %xmm1
+; CHECK-NEXT:  movl  %esi, %ecx
+; CHECK-NEXT:  movl  %edi, %edx
+; CHECK-NEXT:  callq bar
+; CHECK-NEXT:  addl  %edx, %eax
+; CHECK-NEXT:  addl  %ecx, %eax
+; CHECK-NEXT:  xorps %xmm0, %xmm0
+; CHECK-NEXT:  cvtsi2ssl %eax, %xmm0
+; CHECK-NEXT:  addss %xmm0, %xmm1
 ; CHECK:       retq
        %call = call i32 @bar(i32 %a0, i32 %a1, float %b0) #0
        %c0   = add i32 %a0, %call
index 9c62e3ee6ba756aa13fd2f515ef8bc3cf3ab8707..4e5403d1847f24f4d2e9ebd498d9f5c7f63db896 100644 (file)
@@ -1,31 +1,31 @@
-; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s\r
-; RUN: llc -mtriple=x86_64-unknown-unknown -O0 < %s | FileCheck %s\r
-; RUN: llc -mtriple=i686-unknown-unknown -mattr=+sse2 < %s | FileCheck %s\r
-; RUN: llc -mtriple=i686-unknown-unknown -mattr=+sse2 -O0 < %s | FileCheck %s\r
-\r
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
-;; In functions with 'no_caller_saved_registers' attribute, all registers should\r
-;; be preserved except for registers used for passing/returning arguments.\r
-;; The test checks that function "bar" preserves xmm0 register.\r
-;; It also checks that caller function "foo" does not store registers for callee \r
-;; "bar". For example, there is no store/load/access to xmm registers.\r
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
-\r
-define i32 @bar(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4, i32 %a5, i32 %a6, i32 %a7, i32 %a8) #0 {\r
-; CHECK-LABEL: bar\r
-; CHECK:       mov{{.*}}  %xmm0\r
-; CHECK:       mov{{.*}} {{.*}}, %xmm0\r
-; CHECK:       ret\r
-  call void asm sideeffect "", "~{xmm0}"()\r
-  ret i32 1\r
-}\r
-\r
-define x86_intrcc void @foo(i8* nocapture readnone %c) {\r
-; CHECK-LABEL: foo\r
-; CHECK-NOT: xmm\r
-entry:\r
-  tail call i32 @bar(i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8) #0\r
-  ret void\r
-}\r
-\r
-attributes #0 = { "no_caller_saved_registers" }\r
+; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-unknown-unknown -O0 < %s | FileCheck %s
+; RUN: llc -mtriple=i686-unknown-unknown -mattr=+sse2 < %s | FileCheck %s
+; RUN: llc -mtriple=i686-unknown-unknown -mattr=+sse2 -O0 < %s | FileCheck %s
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; In functions with 'no_caller_saved_registers' attribute, all registers should
+;; be preserved except for registers used for passing/returning arguments.
+;; The test checks that function "bar" preserves xmm0 register.
+;; It also checks that caller function "foo" does not store registers for callee 
+;; "bar". For example, there is no store/load/access to xmm registers.
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+define i32 @bar(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4, i32 %a5, i32 %a6, i32 %a7, i32 %a8) #0 {
+; CHECK-LABEL: bar
+; CHECK:       mov{{.*}}  %xmm0
+; CHECK:       mov{{.*}} {{.*}}, %xmm0
+; CHECK:       ret
+  call void asm sideeffect "", "~{xmm0}"()
+  ret i32 1
+}
+
+define x86_intrcc void @foo(i8* nocapture readnone %c) {
+; CHECK-LABEL: foo
+; CHECK-NOT: xmm
+entry:
+  tail call i32 @bar(i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8) #0
+  ret void
+}
+
+attributes #0 = { "no_caller_saved_registers" }