1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -code-model=small -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -code-model=medium -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -code-model=large -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM 4*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -code-model=small -march=ppc64 -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=SMALL 5*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -code-model=medium -march=ppc64 -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM 6*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -code-model=large -march=ppc64 -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=MEDIUM 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine i8* @test() { 9*9880d681SAndroid Build Coastguard Workerentry: 10*9880d681SAndroid Build Coastguard Worker br label %here 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerhere: ; preds = %entry 13*9880d681SAndroid Build Coastguard Worker; MEDIUM: .Ltmp[[TMP0:[0-9]+]]: 14*9880d681SAndroid Build Coastguard Worker; MEDIUM: addis [[R0:[0-9]+]], 2, .LC[[LC0:[0-9]+]]@toc@ha 15*9880d681SAndroid Build Coastguard Worker; MEDIUM: ld 3, .LC[[LC0]]@toc@l([[R0]]) 16*9880d681SAndroid Build Coastguard Worker; MEDIUM: blr 17*9880d681SAndroid Build Coastguard Worker; MEDIUM: .LC[[LC0]]: 18*9880d681SAndroid Build Coastguard Worker; MEDIUM: .tc .Ltmp[[TMP0]][TC],.Ltmp[[TMP0]] 19*9880d681SAndroid Build Coastguard Worker; SMALL: .Ltmp[[TMP0:[0-9]+]]: 20*9880d681SAndroid Build Coastguard Worker; SMALL: ld 3, .LC[[LC0:[0-9]+]]@toc(2) 21*9880d681SAndroid Build Coastguard Worker; SMALL: blr 22*9880d681SAndroid Build Coastguard Worker; SMALL: .LC[[LC0]]: 23*9880d681SAndroid Build Coastguard Worker; SMALL: .tc .Ltmp[[TMP0]][TC],.Ltmp[[TMP0]] 24*9880d681SAndroid Build Coastguard Worker ret i8* blockaddress(@test, %here) 25*9880d681SAndroid Build Coastguard Worker} 26*9880d681SAndroid Build Coastguard Worker 27