19 lines · plain
1;; Test that the UEFI and Windows targets set the rex64 correctly.2; RUN: llc -mtriple x86_64-uefi %s -o - | FileCheck %s -check-prefix=REX3; RUN: llc -mtriple x86_64-windows-msvc %s -o - | FileCheck %s -check-prefix=REX4; RUN: llc -mtriple x86_64-unknown-linux %s -o - | FileCheck %s -check-prefix=NOREX5 6define void @test_tailjmp(ptr %fptr) {7; REX-LABEL: test_tailjmp: # @test_tailjmp8; REX: # %bb.0: # %entry9; REX-NEXT: rex64 jmpq *%rcx # TAILCALL10;11; NOREX-LABEL: test_tailjmp: # @test_tailjmp12; NOREX: .cfi_startproc13; NOREX-NEXT: # %bb.0: # %entry14; NOREX-NEXT: jmpq *%rdi # TAILCALL15entry:16 tail call void %fptr()17 ret void18}19