[PATCH] D30216: GlobalISel: Translate ConstantDataVector

Ahmed Bougacha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 13 14:37:26 PDT 2017


ab accepted this revision.
ab added a comment.
This revision is now accepted and ready to land.

This approach makes sense to me too, thanks folks!  If no one else has a paragraph handy, I'll try to explain the whole post-G_SEQUENCE scheme in the docs page.



================
Comment at: test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll:1341-1349
+define i32 @test_constantdatavector_v3i32() {
+; CHECK-LABEL: name: test_constantdatavector_v3i32
+; CHECK: [[C1:%[0-9]+]](s32) = G_CONSTANT i32 1
+; CHECK: [[C2:%[0-9]+]](s32) = G_CONSTANT i32 2
+; CHECK: [[C3:%[0-9]+]](s32) = G_CONSTANT i32 3
+; CHECK: [[VEC:%[0-9]+]](<3 x s32>) = G_MERGE_VALUES [[C1]](s32), [[C2]](s32), [[C3]](s32)
+; CHECK: G_EXTRACT_VECTOR_ELT [[VEC]](<3 x s32>)
----------------
Any reason for this test to involve an extractelement?


https://reviews.llvm.org/D30216





More information about the llvm-commits mailing list