timing_test: Add more segment modes
diff --git a/timing_test.cc b/timing_test.cc
index d54849d..3477b9a 100644
--- a/timing_test.cc
+++ b/timing_test.cc
@@ -164,6 +164,14 @@
 	} else if (!strcmp(mode, "mov_to_ds")) {
 	        for (size_t i = 0; i < loops; ++i)
 			asm volatile ("mov %0, %%ds" : : "rm" (0));
+	} else if (!strcmp(mode, "zero_gs")) {
+	        for (size_t i = 0; i < loops; ++i)
+			asm volatile ("mov %0, %%gs" : : "rm" (0));
+	} else if (!strcmp(mode, "nonzero_gs")) {
+		unsigned short sel;
+		asm ("mov %%ss, %0" : "=rm" (sel));
+	        for (size_t i = 0; i < loops; ++i)
+			asm volatile ("mov %0, %%gs" : : "rm" (sel));
 	} else if (!strcmp(mode, "sgdt")) {
 		struct {
 			unsigned short limit;