1 ; RUN: llc -march=mips < %s | FileCheck %s -check-prefix=O32
2 ; RUN: llc -march=mips64 -target-abi=n32 < %s | FileCheck %s -check-prefix=N32
3 ; RUN: llc -march=mips64 < %s | FileCheck %s -check-prefix=N64
5 ; We only use the '$' prefix on O32. The others use the ELF convention.
10 ; Check basic block labels while we're at it.
15 @.str = private unnamed_addr constant [2 x i8] c"A\00", align 1
16 @.str.1 = private unnamed_addr constant [2 x i8] c"B\00", align 1
17 @.str.2 = private unnamed_addr constant [2 x i8] c"C\00", align 1
18 @.str.3 = private unnamed_addr constant [2 x i8] c"D\00", align 1
19 @.str.4 = private unnamed_addr constant [2 x i8] c"E\00", align 1
20 @.str.5 = private unnamed_addr constant [2 x i8] c"F\00", align 1
21 @.str.6 = private unnamed_addr constant [2 x i8] c"G\00", align 1
22 @.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
24 define ptr @_Z3fooi(i32 signext %Letter) {
26 %retval = alloca ptr, align 8
27 %Letter.addr = alloca i32, align 4
28 store i32 %Letter, ptr %Letter.addr, align 4
29 %0 = load i32, ptr %Letter.addr, align 4
30 switch i32 %0, label %sw.epilog [
41 store ptr @.str, ptr %retval, align 8
45 store ptr @.str.1, ptr %retval, align 8
49 store ptr @.str.2, ptr %retval, align 8
53 store ptr @.str.3, ptr %retval, align 8
57 store ptr @.str.4, ptr %retval, align 8
61 store ptr @.str.5, ptr %retval, align 8
65 store ptr @.str.6, ptr %retval, align 8
69 store ptr @.str.7, ptr %retval, align 8
73 %1 = load ptr, ptr %retval, align 8