Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/Feature/packed_struct.ll @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
14 @E2 = global {i8, i32, i32} {i8 4, i32 5, i32 6} | 14 @E2 = global {i8, i32, i32} {i8 4, i32 5, i32 6} |
15 | 15 |
16 | 16 |
17 define i32 @main() | 17 define i32 @main() |
18 { | 18 { |
19 %tmp = load i32, i32* getelementptr (%struct.anon, %struct.anon* @foos, i32 0, i32 1) ; <i32> [#uses=1] | 19 %tmp = load i32, ptr getelementptr (%struct.anon, ptr @foos, i32 0, i32 1) ; <i32> [#uses=1] |
20 %tmp3 = load i32, i32* getelementptr (%struct.anon, %struct.anon* @foos, i32 0, i32 2) ; <i32> [#uses=1] | 20 %tmp3 = load i32, ptr getelementptr (%struct.anon, ptr @foos, i32 0, i32 2) ; <i32> [#uses=1] |
21 %tmp6 = load i32, i32* getelementptr (%struct.anon, %struct.anon* @foos, i32 0, i32 3) ; <i32> [#uses=1] | 21 %tmp6 = load i32, ptr getelementptr (%struct.anon, ptr @foos, i32 0, i32 3) ; <i32> [#uses=1] |
22 %tmp4 = add i32 %tmp3, %tmp ; <i32> [#uses=1] | 22 %tmp4 = add i32 %tmp3, %tmp ; <i32> [#uses=1] |
23 %tmp7 = add i32 %tmp4, %tmp6 ; <i32> [#uses=1] | 23 %tmp7 = add i32 %tmp4, %tmp6 ; <i32> [#uses=1] |
24 ret i32 %tmp7 | 24 ret i32 %tmp7 |
25 } | 25 } |
26 | 26 |
27 define i32 @bar() { | 27 define i32 @bar() { |
28 entry: | 28 entry: |
29 %tmp = load i32, i32* getelementptr([2 x <{ i32, i8 }>], [2 x <{ i32, i8 }>]* @bara, i32 0, i32 0, i32 0 ) ; <i32> [#uses=1] | 29 %tmp = load i32, ptr getelementptr([2 x <{ i32, i8 }>], ptr @bara, i32 0, i32 0, i32 0 ) ; <i32> [#uses=1] |
30 %tmp4 = load i32, i32* getelementptr ([2 x <{ i32, i8 }>], [2 x <{ i32, i8 }>]* @bara, i32 0, i32 1, i32 0) ; <i32> [#uses=1] | 30 %tmp4 = load i32, ptr getelementptr ([2 x <{ i32, i8 }>], ptr @bara, i32 0, i32 1, i32 0) ; <i32> [#uses=1] |
31 %tmp5 = add i32 %tmp4, %tmp ; <i32> [#uses=1] | 31 %tmp5 = add i32 %tmp4, %tmp ; <i32> [#uses=1] |
32 ret i32 %tmp5 | 32 ret i32 %tmp5 |
33 } | 33 } |