mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
abfb9e7ee2
Summary: Switch to FileCheck where possible. Adjust tests so they can be easily regenerated by update scripts. Reviewers: craig.topper, spatel, RKSimon Reviewed By: spatel Subscribers: MatzeB, qcolombet, arphaman, jfb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71211
22 lines
815 B
LLVM
22 lines
815 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -relocation-model=static | FileCheck %s --check-prefix=x86_64-darwin
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux-gnu -relocation-model=static | FileCheck %s --check-prefix=x86_64-linux
|
|
|
|
@v = external global i32, align 8
|
|
@v_addr = external global i32*, align 8
|
|
|
|
define void @t() nounwind optsize {
|
|
; x86_64-darwin-LABEL: t:
|
|
; x86_64-darwin: ## %bb.0:
|
|
; x86_64-darwin-NEXT: movq _v@{{.*}}(%rip), %rax
|
|
; x86_64-darwin-NEXT: movq _v_addr@{{.*}}(%rip), %rcx
|
|
; x86_64-darwin-NEXT: movq %rax, (%rcx)
|
|
; x86_64-darwin-NEXT: ud2
|
|
;
|
|
; x86_64-linux-LABEL: t:
|
|
; x86_64-linux: # %bb.0:
|
|
; x86_64-linux-NEXT: movq $v, {{.*}}(%rip)
|
|
store i32* @v, i32** @v_addr, align 8
|
|
unreachable
|
|
}
|