27 lines · plain
1; RUN: llc -verify-machineinstrs < %s -code-model=small -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL2; RUN: llc -verify-machineinstrs < %s -code-model=medium -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM3; RUN: llc -verify-machineinstrs < %s -code-model=large -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM4; RUN: llc -verify-machineinstrs < %s -code-model=small -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL5; RUN: llc -verify-machineinstrs < %s -code-model=medium -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM6; RUN: llc -verify-machineinstrs < %s -code-model=large -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM7 8define ptr @test() {9entry:10 br label %here11 12here: ; preds = %entry13; MEDIUM: .Ltmp[[TMP0:[0-9]+]]:14; MEDIUM: addis [[R0:[0-9]+]], 2, .LC[[LC0:[0-9]+]]@toc@ha15; MEDIUM: ld 3, .LC[[LC0]]@toc@l([[R0]])16; MEDIUM: blr17; MEDIUM: .LC[[LC0]]:18; MEDIUM: .tc .Ltmp[[TMP0]][TC],.Ltmp[[TMP0]]19; SMALL: .Ltmp[[TMP0:[0-9]+]]:20; SMALL: ld 3, .LC[[LC0:[0-9]+]]@toc(2)21; SMALL: blr22; SMALL: .LC[[LC0]]:23; SMALL: .tc .Ltmp[[TMP0]][TC],.Ltmp[[TMP0]]24 ret ptr blockaddress(@test, %here)25}26 27