summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CodeGen/MachineOperandTest.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2018-01-10 00:56:48 +0000
committerPuyan Lotfi <puyan@puyan.org>2018-01-10 00:56:48 +0000
commitfe6c9cbb2440be652b9f7697bf945323e28a9fe4 (patch)
tree95121243a6264879b6225330f250d4dc9b1a0eaf /llvm/unittests/CodeGen/MachineOperandTest.cpp
parent20db381b9056651dee80dd85c7a75894bb6bf31d (diff)
downloadbcm5719-llvm-fe6c9cbb2440be652b9f7697bf945323e28a9fe4.tar.gz
bcm5719-llvm-fe6c9cbb2440be652b9f7697bf945323e28a9fe4.zip
[MIR] Repurposing '$' sigil used by external symbols. Replacing with '&'.
Planning to add support for named vregs. This puts is in a conundrum since physregs are named as well. To rectify this we need to use a sigil other than '%' for physregs in MIR. We've settled on using '$' for physregs but first we must repurpose it from external symbols using it, which is what this commit is all about. We think '&' will have familiar semantics for C/C++ users. llvm-svn: 322146
Diffstat (limited to 'llvm/unittests/CodeGen/MachineOperandTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/MachineOperandTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/CodeGen/MachineOperandTest.cpp b/llvm/unittests/CodeGen/MachineOperandTest.cpp
index 78a20b83648..5bb0b622e09 100644
--- a/llvm/unittests/CodeGen/MachineOperandTest.cpp
+++ b/llvm/unittests/CodeGen/MachineOperandTest.cpp
@@ -215,7 +215,7 @@ TEST(MachineOperandTest, PrintExternalSymbol) {
{
raw_string_ostream OS(str);
MO.print(OS, /*TRI=*/nullptr, /*IntrinsicInfo=*/nullptr);
- ASSERT_TRUE(OS.str() == "$foo");
+ ASSERT_TRUE(OS.str() == "&foo");
}
str.clear();
@@ -225,7 +225,7 @@ TEST(MachineOperandTest, PrintExternalSymbol) {
{
raw_string_ostream OS(str);
MO.print(OS, /*TRI=*/nullptr, /*IntrinsicInfo=*/nullptr);
- ASSERT_TRUE(OS.str() == "$foo + 12");
+ ASSERT_TRUE(OS.str() == "&foo + 12");
}
str.clear();
@@ -235,7 +235,7 @@ TEST(MachineOperandTest, PrintExternalSymbol) {
{
raw_string_ostream OS(str);
MO.print(OS, /*TRI=*/nullptr, /*IntrinsicInfo=*/nullptr);
- ASSERT_TRUE(OS.str() == "$foo - 12");
+ ASSERT_TRUE(OS.str() == "&foo - 12");
}
}
OpenPOWER on IntegriCloud